1

I've been installing ubuntu restricted extras via the software center. Everything was going well at first, but then the installation process froze on 'applying changes' stage. I've had this in the past already, and usually just hitting the 'cancel' button helped, but not this time.

Obviously, the install process has placed a lock, and I couldn't issue any apt-get commands. then i've tried doing what was suggested here Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? :

sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock

but it seemed to me that it has only killed my X server. Okay, i've just pressed the power button on my PC, and restarted, hoping that the lock was finally off and i could reinstall the stuff.

No dice. when I open the software center, I still have one operation in process, a weird one: " Searching | Cancelling ". The 'cancel' button is either inactive, or it just does nothing. So I've become desperate and decided to write here.

How do I fix the problem? Can't install anything on a fresh ubuntu 12.04 :)

Thanks in advance

  • What error message do you get from the terminal when you run sudo apt-get update or sudo apt-get install -f – Panther Apr 8 '12 at 14:15
  • @bodhi.zazen sudo apt-get update [sudo] password for anthony: E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ 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? – Anton Matyulkov Apr 8 '12 at 14:19
  • also, sorry for the way i pasted it >.> – Anton Matyulkov Apr 8 '12 at 14:21
  • nevermind, t seems that the lock has worn off by itself O_o – Anton Matyulkov Apr 8 '12 at 14:36
1

(Problem seems to have solved itself)

nevermind, t seems that the lock has worn off by itself O_o – Loki

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.