Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

So I did manage to set up apt-preferences but I'm not sure if I did it correctly. So basically what I want is, if I have the need I want to install packages from TESTING, UNSTABLE and DEB-MULTIMEDIA and that (ONLY) these Packages also get updates from the specific Repo. But as a "base" I want to have the STABLE-Version. Would be nice if somebody could check if I set this up correctly, because I'm not quite sure how the Pin-Priority works...

so this i my sources.list

## Compatible with Debian Wheezy, but use at your own risk.
deb http://packages.crunchbang.org/waldorf waldorf main
#deb-src http://packages.crunchbang.org/waldorf waldorf main

deb http://ftp.cz.debian.org/debian stable main contrib non-free
#deb-src http://http.debian.net/debian wheezy main contrib non-free

deb http://http.debian.net/debian wheezy-backports main contrib non-free

deb http://ftp.cz.debian.org/debian testing main contrib non-free

deb http://ftp.cz.debian.org/debian unstable main contrib non-free

#deb http://www.deb-multimedia.org wheezy main non-free

deb http://security.debian.org/ wheezy/updates main contrib
#deb-src http://security.debian.org/ wheezy/updates main

and my apt/preferences

Package: *
Pin: release a=waldorf
Pin-Priority: 1001

Package: *
Pin: release a=stable
Pin-Priority: 800

Package: *
Pin: release a=wheezy-backports
Pin-Priority: 650

Package: *
Pin: release a=testing
Pin-Priority: 400

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

Package: *
Pin: origin *.deb-multimedia.org
Pin-Priority: 10
share|improve this question
You're mixing Debian repos with another distribution? Is that Ok? Note that at least wheezy-backports already sets a priority server-side, which is what you usually want, so you don't need to set your own. From my machine it looks like 100. I think you want testing preferences under 100 too. Read man apt_preferences if you haven't already. – Faheem Mitha Jun 19 '14 at 23:06
The Crunchbang-Repo was there after the installation, I´m not quite sure if I can remove it safely, because I´m using crunchbang...and yes I read the man-page and lots of other documentation on the web, but I´m not 100% sure if I got it right... – makim Jun 20 '14 at 8:39
Just curious what the advantage is of running Crunchbang vs Debian directly. – Faheem Mitha Jun 20 '14 at 10:08
I think they have some updated/fixed packages in there, packages.crunchbang.org/waldorf/pool/main – makim Jun 20 '14 at 11:06
I see. Thanks @sine. – Faheem Mitha Jun 20 '14 at 16:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.