Server Fault is a question and answer site for system and network administrators. 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 want to just some packages installation from unstable version of debian.

apt-get -t unstable install myspecialpackage

but when i

apt-get upgrade

it will wanting to download some packages from unstable.

also i added this line /etc/apt/apt.conf

APT::Default-Release "stable";

what's my mistake?

share|improve this question
up vote 1 down vote accepted

You need to use pinning and set all unstable packages to a pinning value below 500, and add pinning values above those for stable (normally 500, but 990 if APT::Default-Release is used) for those unstable packages you want:

Example /etc/apt/preferences:

Package: *
Pin: release a=unstable
Pin-Priority: 110

Package: myspecialpackage
Pin: release a=unstable
Pin-Priority: 991

(I can't remember if the order actually matters. If so, reverse the two paragraphs.)

Have a look in the apt_preferences(5) man page for the details.

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.