Pin priority of packages
John L Fjellstad
john-ubuntu at fjellstad.org
Sun Jul 16 19:11:21 UTC 2006
"Frode M. Døving" <frode at lnix.net> writes:
>
> Lørdag 15 juli 2006 22:18, skrev John L Fjellstad:
>> Anyone know where the default pin priorities are set?
>> I just checked my installation and apparently, security's pin priority
>> is set to 500, while the default archive is set to 990. Changing the
>> default archive (dapper) to 700 (with security at 900) didn't help,
>> because the default archive never got changed.
>>
>> Seems to be a bug (security archives really should have a higher
>> priority)
>
> Hi.
>
> It's set in /etc/apt/preferences.
>
> 'man apt_preferences' for more information.
I think you missed the part where I wrote that I had changed the pin
priority to dapper archive to 700 without it helping.
##############
john at minerva:~$ cat /etc/apt/preferences
Package: *
Pin: release a=dapper
Pin-Priority: 700
Package: *
Pin: release a=dapper-security
Pin-Priority: 999
Package: *
Pin: release o=Debian
Pin-Priority: 50
Package: linux-source-2.6.17
Pin: release o=Debian
Pin-Priority: 150
Package: *
Pin: release a=dapper-backports
Pin-Priority: 50
#############
Note, dapper archive is set to 700 and dapper-security archive is set to
999.
############
john at minerva:~$ apt-cache policy mutt
mutt:
Installed: 1.5.11-3ubuntu2.1
Candidate: 1.5.11-3ubuntu2.1
Version table:
1.5.11+cvs20060403-2 0
50 ftp://ftp.debian.org sid/main Packages
*** 1.5.11-3ubuntu2.1 0
999 http://security.ubuntu.com dapper-security/main Packages
100 /var/lib/dpkg/status
1.5.11-3ubuntu2 0
990 http://us.archive.ubuntu.com dapper/main Packages
###########
Note that dapper archive is set to 990.
Now, if I remove the dapper-security from /etc/apt/preferences
##########
john at minerva:~$ cat /etc/apt/preferences
Package: *
Pin: release a=dapper
Pin-Priority: 700
Package: *
Pin: release o=Debian
Pin-Priority: 50
Package: linux-source-2.6.17
Pin: release o=Debian
Pin-Priority: 150
Package: *
Pin: release a=dapper-backports
Pin-Priority: 50
##########
##########
john at minerva:~$ apt-cache policy mutt
mutt:
Installed: 1.5.11-3ubuntu2.1
Candidate: 1.5.11-3ubuntu2.1
Version table:
1.5.11+cvs20060403-2 0
50 ftp://ftp.debian.org sid/main Packages
*** 1.5.11-3ubuntu2.1 0
500 http://security.ubuntu.com dapper-security/main Packages
100 /var/lib/dpkg/status
1.5.11-3ubuntu2 0
990 http://us.archive.ubuntu.com dapper/main Packages
#########
Note that default pin priority for dapper-security archive when
unspecified in /etc/apt/preferences is 500, lower than the dapper
archive, which means that packages will never get updated.
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
More information about the kubuntu-users
mailing list