/etc/apt/sources.list
###
# testing #
########
deb
http://ftp.us.debian.org/debiantesting main contrib non-free
###
# unstable #
########
deb
http://ftp.us.debian.org/debian unstable main contrib non-free
In this example, we're pulling from testing and unstable. You could, of course, modify this to pull from stable as well.
/etc/apt/preferences
The 'preferences' file is where the actual pinning takes place. Here's an example:
Package: *Pin:
release a=testing
Pin-Priority: 900
Package: *Pin:
release a=unstable
Pin-Priority: 800
--------------------------
https://wiki.debian.org/AptPreferences很多时候百度不行谷歌试试