Hi
When updating using the module updater I am receiving the following and all updates are failing:
Installing package(s) with command apt-get -y install webmin-virtual-server ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
All packages have the same errors.
John
Now updating webmin-virtualmin-awstats ..
Installing package(s) with command apt-get -y install webmin-virtualmin-awstats ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
Now updating webmin-virtualmin-dav ..
Installing package(s) with command apt-get -y install webmin-virtualmin-dav ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
Now updating webmin-virtualmin-htpasswd ..
Installing package(s) with command apt-get -y install webmin-virtualmin-htpasswd ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
Now updating webmin-virtualmin-init ..
Installing package(s) with command apt-get -y install webmin-virtualmin-init ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
Now updating webmin-virtualmin-mailman ..
Installing package(s) with command apt-get -y install webmin-virtualmin-mailman ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
Now updating webmin-virtualmin-slavedns ..
Installing package(s) with command apt-get -y install webmin-virtualmin-slavedns ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
Now updating webmin-virtualmin-svn ..
Installing package(s) with command apt-get -y install webmin-virtualmin-svn ..
dpkg: status database area is locked by another process E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
.. install failed!
No packages were installed. Check the messages above for the cause of the error.
It sounds like some process is locking that database... what is the output of these two commands:
ps auxw | grep apt
ps auxw | grep dpkg
Hi, here are the results of the request
John
linux@jmb-webserver:~$ ps auxw | grep apt linux 18027 0.0 0.0 3328 816 pts/0 S+ 06:49 0:00 grep --color=auto apt linux@jmb-webserver:~$ ps auxw | grep dpkg linux 18051 0.0 0.0 3328 816 pts/0 S+ 06:49 0:00 grep --color=auto dpkg linux@jmb-webserver:~$
Okay, what about just deleting the lockfile:
rm /var/lib/dpkg/lock
After running that command, are you able to perform your updates?
-Eric
Hi,
Yes! The updates have completed - thank you very much!
Hi,
Yes! The updates have completed - thank you very much!
Hello,
I am having a similar issue. I tried using webmin 'File Manager' to delete the file but I am getting this:
Following errors occured while performing operation lock-frontend - unable to delete: No such file or directory
Which is strange since I can select the file using the 'File Manager' so it exists for sure.
Is there a way (virtualmin/webmin) to remove that file without having to login to the linux console to do it?
Note that I am not running anything special so I have no idea why the file is locked in the first place.
I also tried editing the file and adding a '1' in it and I could save the file using 'File Manager'.
So does it make sense that 'File Manager' can open/edit/save a file but cannot delete it?