Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install updates via the Update Manager, and I got this error:

The Package system is broken Check if you are using third party repositories. if so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f

When I run apt-get install -f, I get:

E: could not open lock file /var/lib/dpkg/lock - open (13: Permission Denied   E: Unable to lock administration directory (/var/lib/dpkg/), are you root?    

What is wrong? How do I fix it? Why does this happen?


This is what i get when i do sudo apt-get install -f




Picture are in the correct order. too much info for one picture so had to break it into 3 but all of the information is in there.

share|improve this question
up vote 2 down vote accepted

In addition to the sudo command that you need, your pictures show a "No space left on device" error; your hard drive is full!

share|improve this answer
it shouldn't be there are 2 hard drives. both 8GB when installing i made my own partitions so maybe that's why i will make the hard drives bigger when i reinstall. – Kris Everett Jul 4 '12 at 14:28

apt-get install -f must be run as root, so run it like this instead:

sudo apt-get install -f

You'll be prompted for your password. As you enter it, you won't see anything, but that's OK--just type it in and press Enter.

That may fix your problem. If not, you can edit your question to provide more information (including the output of sudo apt-get install -f).

share|improve this answer
i added more info for you and the other to look at. – Kris Everett Jul 3 '12 at 23:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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