Ubuntu: could not get lock /var/lib/dpkg/lock

Execute:

sudo systemctl stop apt-daily.timer
Advertisements

Find JAVA_HOME in Centos

Execute the following commands to get the JAVA_HOME:

  1. update-alternatives –display java
  2. ll /etc/alternatives/java