I Can't Use 'Apt-get' And 'Aptitude' In Ubuntu - HELP!!!

Asked by taurus

Ok, I installed 'localepurge' on my ubuntu 8.04 and as a consequence, I can't use 'aptitude' or 'apt-get' to install and remove apps. Here are the following error messages I get. What must I do to correct the problem?

x@xx:~$ sudo apt-get remove wine
[sudo] password for x:
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?

x@xx:~$ sudo aptitude remove wine
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?
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
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?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu localepurge Edit question
Assignee:
No assignee Edit question
Solved by:
taurus
Solved:
Last query:
Last reply:
Revision history for this message
Justin (justinv) said :
#1

that error indicates that some other program has the lock. Close all programs except your terminal and see if you can run sudo apt-get remove wine.

Revision history for this message
taurus (taurusxz) said :
#2

Hi justin. I actually went ahead and ran the program: 'localepurge'. That did the trick. Thanks again!