28

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 http://archive.ubuntu.com/ubuntu raring main

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

Sandman4
  • 1,207

2 Answers2

10

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

See https://help.ubuntu.com/community/PinningHowto 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.

https://help.ubuntu.com/community/UbuntuBackports

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.

Panther
  • 104,528
1

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.

David
  • 907