Updates failing

8 posts / 0 new
Last post
#1 Fri, 09/23/2011 - 13:57
jmbolanos

Updates failing

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.

Sun, 09/25/2011 - 19:38
andreychek

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
Mon, 09/26/2011 - 00:51
jmbolanos

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:~$

Mon, 09/26/2011 - 08:58
andreychek

Okay, what about just deleting the lockfile:

rm /var/lib/dpkg/lock

After running that command, are you able to perform your updates?

-Eric

Mon, 09/26/2011 - 15:34 (Reply to #4)
jmbolanos

Hi,

Yes! The updates have completed - thank you very much!

Mon, 09/26/2011 - 16:12 (Reply to #5)
jmbolanos

Hi,

Yes! The updates have completed - thank you very much!

Wed, 10/23/2019 - 07:32
virtualpaul

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?

Thu, 10/24/2019 - 08:49
virtualpaul

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?