I've followed the instructions on debian-handbook.info/browse/stable/apt.html (and the page linked there) which basically say to put the following text in /etc/apt/sources.list# Unstabledeb http://ftp.debian.org/debian unstable main contrib non-freedeb-src http://ftp.debian.org/debian unstable main contrib non-free# Testingdeb http://ftp.debian.org/debian testing main contrib non-freedeb-src http://ftp.debian.org/debian testing main contrib non-free# Stabledeb http://ftp.debian.org/debian stable main contrib non-freedeb-src http://ftp.debian.org/debian stable main contrib non-free# Security updatesdeb http://security.debian.org/ stable/updates main contrib non-freedeb http://security.debian.org/ testing/updates main contrib non-freedeb-src http://security.debian.org/ stable/updates main contrib non-freedeb-src http://security.debian.org/ testing/updates main contrib non-freeThen add APT::Default-Release testing; to /etc/apt/apt.conf.d/local to download only the packages in Testing.Well, it didn't work.I also tried adding APT::Default-Release testing; to /etc/apt/apt.conf.d/70debconf as suggested at https://wiki.debian.org/AptConf but apt dist-upgrade still wanted to install Unstable's pakages.
How can I use Unstable repositories and install only packages in Testing by default (via AptConf)?
debian
I went through a bit of documentation and I found a solution in the Debian administration handbook, section 2.7.6:I have both Testing and Unstable repos in my /etc/apt/sources.list and I have created /etc/apt/preferences withPackage: *Pin: release a=unstablePin-Priority: 100in it. Running apt-cache policy gnome-shell (I use gnome-shell as a tell-tale since different versions are available in Unstable and Testing, respectively 3.20 and 3.18) now correctly displays both 3.20 and 3.18 as available versions and the latter as the candidate.The documentation I've found most useful:https://www.debian.org/doc/manuals/debian-reference/ch02.en.htmlman apt_preferences