Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

So I was trying to install gpac from source (a big mistake) and in the process I broke my Ubuntu machine. I can do sudo apt-get update but when I do sudo apt-get upgrade, I get this error:

richard@richard-desktop:~/projects/sdp-encode-node$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
 freeglut3-dev : Depends: freeglut3 (= 2.6.0-0ubuntu2) but 2.6.0-1ubuntu2 is installed
E: Unmet dependencies. Try using -f.

Any ideas how to fix it?

share|improve this question

Did you try running apt-get -f install, like the message suggested?

share|improve this answer

I suspect the key part of that error message is this:

freeglut3-dev : Depends: freeglut3

You could try installing freeglut3 or, if you don't need freeglut3-dev, try removing that.

Either way, you may need -f to force it to work rather than complaining about unmet dependencies:

apt-get -f install freeglut3


apt-get -f remove freeglut3-dev
share|improve this answer

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.