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

This question already has an answer here:

I'm currently using precise. I need to upgrade a certain package (namely bind9 and it's dependencies) to a newer version, which is currently found in raring (alfa at the time of writing this). How to do it ?

What will happen if I just add to my sources.list:

deb raring main

Will the next apt-get update / apt-get upgrade, upgrade most of my system to raring then ?

share|improve this question

marked as duplicate by Eric Carvalho, 2707974, Charles Green, kos, g_p Nov 13 '15 at 11:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 5 down vote accepted

If you want to mix repositories like that you should use pinning.

See for details.

When pinning, you install a single package and as few dependencies as possible.

Without pinning, sudo apt-get upgrade will update (upgrade) many or all your packages and very likely will cause breakage.

In general, unless you have a lot of experience with apt, mixing repositories, even with pinning is inadvisable.

Better to find a ppa or use backports.

My advice is that you use Craven's ppa.

IMO, if a package is not available, I agree with the advice to build from source as, IMO, it is less likely to cause irreparable harm to the system.

share|improve this answer
I did pinning and it worked well. Thanks. – Sandman4 Mar 11 '13 at 14:19

Presumably it will upgrade all the packages to the newest version found in the raring repository.

You should try adding a specific PPA for the bind9 package.

share|improve this answer
There's no PPA for precise there – Sandman4 Mar 7 '13 at 14:55
@Sandman4 - If you look at the your link, you'll see that the version in Raring for Bind9 is 9.9.2. That is also the version available in every repository found in the one Craven has linked. Therefore, you probably don't actually need to install it from the future distribution, as Precise very likely has that version. If you want the most recent version, you'll have to compile the source yourself from the ISC website, though I doubt you'll see much difference unless you're looking for a specific bug fix. – Shauna Mar 7 '13 at 15:22
I am looking for a specific bugfix - – Sandman4 Mar 7 '13 at 15:24
Precise (and quantal) have 9.8.1. Raring have 9.9.2 (see my link) – Sandman4 Mar 7 '13 at 15:25
I already provided you a PPA with bind 9.9.2. You can add it via sudo add-apt-repository ppa:<user>/<ppa-name>. If it doesn't work try this. It is a little newer. If that doesn't work either, search for a PPA with the exact version of bind you need. – David Mar 7 '13 at 16:20

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