Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try to install through my terminal I get this error:

enyel@Alexandria:~$ sudo apt-get unsettings
E: Invalid operation unsettings
enyel@Alexandria:~$ sudo apt-get install unsettings
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?

I already added the PPA and updated it, can anyone help?

share|improve this question

marked as duplicate by Jorge Castro, Eric Carvalho, Seth, hhlp, Stephen Myall Feb 26 '13 at 7:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Is anything else running like the Update Manager, Software Center? –  Uri Herrera Feb 25 '13 at 23:42
add comment

2 Answers 2

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

This tells you that another dpkg or apt command is already running. Please inspect your running processes with `ps auxw |egrep -e 'apt|dpkg'

  • If such a program is running, kill it.
  • If really no such program is running, delete the lock file: sudo rm -f /var/lib/dpkg/lock

For sanity invoke dpkg --configure -a

share|improve this answer
add comment

Run

sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a

sudo apt-get install unsettings

share|improve this answer
add comment

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