Installation toolkit setup on Ubuntu fails due to dpkg database lock issue
The installation toolkit setup on Ubuntu nodes might fail due to a dpkg database lock issue.
Symptom:
The error message might be similar to one of the
following:
Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
Unable to lock directory /var/lib/apt/lists/
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Workaround:
- Identify the apt-get process by issuing the following
command:
ps -ef | grep apt-get
This process might be running on multiple nodes. Therefore, you might need to issue this command on each of these nodes. If the installation process failed after the creation of cluster, you can use the mmdsh command to identify the apt-get process on each node it is running on.mmdsh ps -ef | grep apt-get
- Kill the apt-get process on each node it is running
on:
sudo kill Process_ID
- Retry the installation toolkit setup. If the error persists, issue following commands and then
try again:
rm /var/lib/apt/lists/lock dpkg –configure -a