Confusion about apt priorities?
RafaĆ Radecki
radecki.rafal at gmail.com
Tue Apr 14 13:56:18 UTC 2015
Hi All :)
I try to configure apt priorities. I am using ubuntu 12.04. Overall:
1) my repositories are:
egrep -v '#|^\s*$' /etc/apt/sources.list
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise main
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise main
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates main
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates main
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise universe
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates
universe
deb http://security.ubuntu.com/ubuntu precise-security main
deb-src http://security.ubuntu.com/ubuntu precise-security main
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
I have no additional repos in /etc/apt/sources.list.d.
2) I have one file with priorities:
cat /etc/apt/preferences.d/precise-security
Package: *
Pin: release a=precise-security
Pin-Priority: 900
3) I checked that for repositories precise-updates and precise-security
"Packages.gz" files contain info about linux-virtual package which I am
using for testing priorities
a)
http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-amd64/Packages.gz
Package: linux-virtual
Priority: optional
Section: kernel
Installed-Size: 32
Maintainer: Ubuntu Kernel Team <kernel-team at lists.ubuntu.com>
Architecture: amd64
Source: linux-meta
Version: 3.2.0.80.94
Depends: linux-image-virtual (= 3.2.0.80.94), linux-headers-virtual (=
3.2.0.80.94)
Filename: pool/main/l/linux-meta/linux-virtual_3.2.0.80.94_amd64.deb
Size: 1750
MD5sum: e2fe27e662fcd67ba68fb32422a63324
SHA1: dbb23ff48f30d3154cd87695f75a8b7df5c34d98
SHA256: 96488beea64616786e85c18b38d25efbcc093531e6528e7999ccda76e9b80575
Description: Complete Linux kernel for virtual machines
Description-md5: 1fcefd4617bb67b6504e23a73590a356
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
b)
http://security.ubuntu.com/ubuntu/dists/precise-security/main/binary-amd64/Packages.gz
Package: linux-virtual
Priority: optional
Section: kernel
Installed-Size: 32
Maintainer: Ubuntu Kernel Team <kernel-team at lists.ubuntu.com>
Architecture: amd64
Source: linux-meta
Version: 3.2.0.80.94
Depends: linux-image-virtual (= 3.2.0.80.94), linux-headers-virtual (=
3.2.0.80.94)
Filename: pool/main/l/linux-meta/linux-virtual_3.2.0.80.94_amd64.deb
Size: 1750
MD5sum: e2fe27e662fcd67ba68fb32422a63324
SHA1: dbb23ff48f30d3154cd87695f75a8b7df5c34d98
SHA256: 96488beea64616786e85c18b38d25efbcc093531e6528e7999ccda76e9b80575
Description: Complete Linux kernel for virtual machines
Description-md5: 1fcefd4617bb67b6504e23a73590a356
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
So overall I should be able to download linux-virtual from both repos.
4) apt-cache policy linux-virtual
linux-virtual:
Installed: 3.2.0.76.90
Candidate: 3.2.0.80.94
Version table:
3.2.0.80.94 0
500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/
precise-updates/main amd64 Packages
900 http://security.ubuntu.com/ubuntu/ precise-security/main amd64
Packages
*** 3.2.0.76.90 0
100 /var/lib/dpkg/status
3.2.0.23.25 0
500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise/main
amd64 Packages
5) But when I run:
apt-get -s install linux-virtual -qq
Inst linux-image-3.2.0-80-virtual (3.2.0-80.116
Ubuntu:12.04/precise-updates [amd64])
Inst linux-headers-3.2.0-80 (3.2.0-80.116 Ubuntu:12.04/precise-updates
[all])
Inst linux-headers-3.2.0-80-virtual (3.2.0-80.116
Ubuntu:12.04/precise-updates [amd64])
Inst linux-virtual [3.2.0.76.90] (3.2.0.80.94 Ubuntu:12.04/precise-updates
[amd64]) []
Inst linux-image-virtual [3.2.0.76.90] (3.2.0.80.94
Ubuntu:12.04/precise-updates [amd64]) []
Inst linux-headers-virtual [3.2.0.76.90] (3.2.0.80.94
Ubuntu:12.04/precise-updates [amd64])
Conf linux-image-3.2.0-80-virtual (3.2.0-80.116
Ubuntu:12.04/precise-updates [amd64])
Conf linux-headers-3.2.0-80 (3.2.0-80.116 Ubuntu:12.04/precise-updates
[all])
Conf linux-headers-3.2.0-80-virtual (3.2.0-80.116
Ubuntu:12.04/precise-updates [amd64])
Conf linux-image-virtual (3.2.0.80.94 Ubuntu:12.04/precise-updates [amd64])
Conf linux-headers-virtual (3.2.0.80.94 Ubuntu:12.04/precise-updates
[amd64])
Conf linux-virtual (3.2.0.80.94 Ubuntu:12.04/precise-updates [amd64])
I only get results from precise-updates repo and not (as I wanted when
setting 900 priority for precise-security) from precise-security repo.
I need this to check if in precise-security there are any kernel updates
available to be able to tell if I really need to update the kernel because
of security issues. Other kernel updates are not in scope of this.
Is there an error somewhere in my configuration? ;) Can you help?
BR,
Rafal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150414/c40e9388/attachment.html>
More information about the ubuntu-users
mailing list