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 not sure how to resolve the following broken package errors. I have libminiupnpc8 installed from a PPA (1.6-precise2) and when I want to install libminiupnpc-dev, it wants to install libminiupnpc8 (1.6-3ubuntu1) from the standard repository. What's the best way to resolve this? Can I set a precedent in the repository list so it will take the Ubuntu one before the private one?

$ sudo apt-get install libminiupnpc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libminiupnpc-dev : Depends: libminiupnpc8 (= 1.6-3ubuntu1) but 1.6-precise2 is to be installed
E: Unable to correct problems, you have held broken packages.
share|improve this question
Have you tried sudo apt-get update and sudo apt-get -f (-f: "Attempt to correct a system with broken dependencies in place") – R110 May 28 '13 at 18:19
up vote 1 down vote accepted

Best solution is, if those needed packages are in the Official Ubuntu Repository, remove that PPA and install needed packages.

It seems that the libminiupnpc-dev that going to be installed from the Main repository, not from the PPA. If you want to use that repository somehow, you have to do Pinning. That means you need gain a higher position to that PPA in installation. To do that run this:

gksudo gedit /etc/apt/preferences

Then add following lines to the Gedit and save:

Package: libminiupnpc-dev
Pin: release o=Ubuntu
Pin-Priority: 100

Package: libminiupnpc-dev
Pin: release o=LP-PPA-<ppa name>
Pin-Priority: 200

** Replace < ppa name > with that PPA name(without phrase ppa:)

share|improve this answer
so what would the PPA name be? – duckx Dec 26 '13 at 19:36

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.