Hi Guys,
I am using Debian etch(mainly) with some packages from unstable and I was playing around with the apt-pinning feature of Debian. I want that the autofs package does not get installed on my system by mistake so I did the following:
Code:
#deb file:///cdrom/ sarge main
deb http://mirrors.kernel.org/debian/ testing main non-free contrib
#deb-src http://mirrors.kernel.org/debian/ testing main non-free contrib
deb http://mirrors.kernel.org/debian/ unstable main non-free contrib
#deb-src http://mirrors.kernel.org/debian/ unstable main non-free contrib
#deb http://security.debian.org/ testing/updates main contrib non-free
# Sid/Etch Dapper/Breezy and others:
#deb http://splashy.alioth.debian.org/debian main unstable
#deb-src http://splashy.alioth.debian.org/debian main unstable
and my /etc/apt/preferences file looks like this:
Code:
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 700
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 500
Package: autofs
Pin: release o=Debian,a=unstable,a=testing,l=Debian,c=main
Pin-Priority: -10
Even after this when I do:
apt-get update
apt-get -s install autofs
I get the following output:
Code:
root@debian:~# apt-get -s install autofs
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
autofs
0 upgraded, 1 newly installed, 0 to remove and 88 not upgraded.
Inst autofs (4.1.4-9 Debian:testing)
Conf autofs (4.1.4-9 Debian:testing)
root@debian:~#
Why is still autofs package being installed. According to man apt_preferences a priority < 1 will cause package not to install.
I even tried Pinning on the version like this:
Code:
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 700
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 500
Package: autofs
Pin: version 4.1.4-9
Pin-Priority: -10
But still it does not help.
I spent like 2 hrs on this googling and reading APT-GET how to on Debian docs but still no luck.
Any one please tell me what is going on here????