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

How do I tell aptitude to grab a package specifically from a PPA and ignore the one from official repository?

share|improve this question
Can you use Synaptic? I believe you can do this in aptitude's ncurses interface, but I don't think you can from the commandline. – RolandiXor Jun 21 '11 at 14:29
up vote 1 down vote accepted

If you like to do it only once, just manual downloading and installing may be best way.

But if you'd like to update regulary, try to use APT pinning to force specific repo, you can find more on

I've never used it for repo only to specify package version, so i'm not sure how to make it work this way.

share|improve this answer

You can comment with # each official repo line, update aptitude, install, and uncomment these lines. Difficult, but works

share|improve this answer
this is a good solution however – Anwar Shah Jun 17 '15 at 4:25

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.