Specifically:Monsta wrote:These preferences are too high, I think, especially 600 for Testing.urbiental wrote:i used this preferences and list
Code: Select all
$ man apt_preferences
APT_PREFERENCES(5) APT APT_PREFERENCES(5)
NAME
apt_preferences - Preference control file for APT
...
How APT Interprets Priorities
Priorities (P) assigned in the APT preferences file must be positive or negative integers. They are interpreted as follows (roughly speaking):
P >= 1000
causes a version to be installed even if this constitutes a downgrade of the package
990 <= P < 1000
causes a version to be installed even if it does not come from the target release, unless the installed version is more recent
500 <= P < 990
causes a version to be installed unless there is a version available belonging to the target release or the installed version is more recent
100 <= P < 500
causes a version to be installed unless there is a version available belonging to some other distribution or the installed version is more recent
0 < P < 100
causes a version to be installed only if there is no installed version of the package
P < 0
prevents the version from being installed
Another tip, to freeze a single package, don't pin it: `aptitude hold/unhold` it.
You'll forget what you've frozen (and go mad figuring out why your upgrades always report "... and 1 not upgraded"). The lookup command is a little esoteric, so create an alias:
Code: Select all
echo "alias apt-held='aptitude search ~ahold'" >> ~/.bash_aliases
You can combiner specifiers, comma-separated.Actually, I don't know if you can pin Testing in LMDE at all. IIRC, the release name ("release a=testing") is the same in LMDE's Latest repos.
Code: Select all
$ cat /etc/apt/preferences
Package: *
Pin: release o=linuxmint
Pin-Priority: 700
Package: *
Pin: release o=linuxmint-debian
Pin-Priority: 700
Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: 700
Package: *
Pin: origin mirror.metrocast.net
Pin-Priority: 700
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 99
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 50
$ inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list
deb http://packages.linuxmint.com/ debian main upstream import incoming #romeo
deb-src http://packages.linuxmint.com/ debian main upstream import incoming #romeo
deb http://mirror.metrocast.net/linuxmint-debian/incoming testing main contrib non-free
deb-src http://mirror.metrocast.net/linuxmint-debian/incoming testing main contrib non-free
deb http://mirror.metrocast.net/linuxmint-debian/incoming/security testing/updates main contrib non-free
deb http://mirror.metrocast.net/linuxmint-debian/incoming/multimedia testing main non-free
deb http://http.debian.net/debian testing main contrib non-free
deb http://http.debian.net/debian unstable main contrib non-free
deb http://http.debian.net/debian experimental main