I can't upgrade, get this error:E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory

Asked by Bigherb

I get this message:E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Make sure you have no updates running and don't have software centre running either, this will lock the packages.
If this is not the case you can run:
sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

and unlock the packages

Revision history for this message
Soul-Sing (soulzing) said :
#2

a reboot often helps. or: sudo rm /var/cache/apt/archives/lock

Revision history for this message
Bigherb (bigherb-98) said :
#3

during update why does it ask for the install cd?

Revision history for this message
Soul-Sing (soulzing) said :
#4

system: administration: sofware sources: disable cd as a source: reload
close sofware sources
sudo apt-get update
rm /var/cache/apt/archives/lock
sudo apt-get update

Revision history for this message
Soul-Sing (soulzing) said :
#5

Bigherb is your problem solved, if not, you could ask some additional questions or some feedback.

Can you help with this problem?

Provide an answer of your own, or ask Bigherb for more information if necessary.

To post a message you must log in.