Hi all,
I tried to upgrade
# sudo apt-get upgrade
Got error:
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
How do I deal with that?
Hi all,
I tried to upgrade
# sudo apt-get upgrade
Got error:
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
How do I deal with that?
This command should kill any programs locking the cache and remove the lock
However, you should be careful that you don't interupt any ongoing installations as this might create an unstable system.Code:sudo fuser -cuk /var/cache/apt/archives/lock sudo rm -f /var/cache/apt/archives/lock
If I have something upgrading in the cli and its waiting for conformation to proceed, and I try to use packagemgr I'll get the same" can not get lock" until I complete the cli command.
You cannot apt-get and use another package manager at the same time.
We can not use more than one method of updating at the same time. If Update Manager then it will lock out any other attempts to update/upgrade. The same applies to any method that we use to update/upgrade. This includes the terminal, the software Centre, and other package managers such as Synaptic.
Remember, Update Manager checks for updates in the background according to a schedule that is fixed by its settings. If we are trying to update through the terminal when Update Manager is making its connections to the repositories, then we get that cannot lock on message.
Regards.
It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
Ubuntu user #33,200. Linux user #530,530
Bookmarks