0

I am running Ubuntu 14.04, as Xubuntu, in an AMD 64 pc, configured as dual boot with Windows 7. I tried installing vim with this:

This was the output:

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?
5
  • Is something already installing without you knowing?
    – user292611
    Jan 15, 2015 at 18:03
  • Which code did you execute to try and install vim? Which code produced the error when run?
    – user364819
    Jan 15, 2015 at 18:05
  • Who ever given -ve vote , give an explanation.
    – Raja G
    Jan 15, 2015 at 18:14
  • You must be very persuasive. Jan 15, 2015 at 18:26
  • Welcome to askubuntu! Please search for your answer before posting your question. In many cases your question has been asked and answered. Thank you!
    – Elder Geek
    Jan 15, 2015 at 21:06

1 Answer 1

0

There are usually at least 2 common reasons:

  1. Either you aren't executing this command as root (typing id shows you who you're logged in as or
  2. Something else is managing packages at the same time you're trying to install a new one.

To verify if there's anything else managing packages at this time, run ps -ef | grep dpkg - if you get dpkg processes in the output, just wait a bit and retry after they're gone.

Make sure to attempt the installation as root via:

sudo aptitude install vim

Not the answer you're looking for? Browse other questions tagged .