[Touch-packages] [Bug 1516855] Re: apt shows downloads from -proposed pocket when it should use -updates pocket

2016-11-03 Thread Julian Andres Klode
As Adam wrote, that is documented and by design: The order of sources
determines the source for a given package version.

** Changed in: apt (Ubuntu)
   Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1516855

Title:
  apt shows downloads from -proposed pocket when it should use -updates
  pocket

Status in apt package in Ubuntu:
  Opinion

Bug description:
  I wanted to test an SRU kernel in -proposed; as suggested by the Wiki
  page, I used the following apt preferences to pin the trusty-proposed
  pocket to a lower priority:

  $ cat /etc/apt/preferences.d/proposed-updates 
  Package: *
  Pin: release a=trusty-proposed
  Pin-Priority: 400

  After installing the kernel package, I started a normal update.

  apt-get -us dist-upgrade didn't show any updates coming via proposed,
  but the actual apt-get -u dist-upgrade claimed the packages were
  coming from trusty-proposed all the same:

  sarnold@hunt:/var/cache/apt$ sudo apt-get -us dist-upgrade | grep prop
  sarnold@hunt:/var/cache/apt$ sudo apt-get -u dist-upgrade
  Reading package lists... Done
  Building dependency tree   
  Reading state information... Done
  Calculating upgrade... Done
  The following packages were automatically installed and are no longer 
required:
linux-headers-3.13.0-66 linux-headers-3.13.0-66-generic
linux-image-3.13.0-66-generic linux-image-extra-3.13.0-66-generic
linux-tools-3.13.0-66 linux-tools-3.13.0-66-generic
  Use 'apt-get autoremove' to remove them.
  The following NEW packages will be installed:
linux-headers-3.13.0-68 linux-headers-3.13.0-68-generic
linux-image-3.13.0-68-generic linux-image-extra-3.13.0-68-generic
linux-tools-3.13.0-68 linux-tools-3.13.0-68-generic squashfs-tools
  The following packages will be upgraded:
apport apport-gtk click-reviewers-tools debootstrap firefox
firefox-locale-en flashplugin-installer fonts-opensymbol grub-common grub-pc
grub-pc-bin grub2-common krb5-locales libgssapi-krb5-2 libido3-0.1-0
libk5crypto3 libkrb5-3 libkrb5support0 libnautilus-extension1a
libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc
libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome
libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans
libreoffice-pdfimport libreoffice-presentation-minimizer
libreoffice-style-human libreoffice-style-tango libreoffice-writer
libxen-4.4 libxenstore3.0 libxml2 libxml2-dev libxml2-utils linux-firmware
linux-generic linux-headers-generic linux-image-generic linux-libc-dev
linux-tools-common linux-tools-generic nautilus nautilus-data
notify-osd-icons python-apport python-libxml2 python-problem-report
python3-apport python3-problem-report python3-uno unity-settings-daemon
uno-libs3 unzip ure wpasupplicant
  61 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
  Need to get 167 MB/213 MB of archives.
  After this operation, 276 MB of additional disk space will be used.
  Do you want to continue? [Y/n] 
  Err http://mirror.pnl.gov/ubuntu/ trusty-updates/main libxml2 amd64 
2.9.1+dfsg1-3ubuntu4.5
403  Forbidden
  Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main libxml2 amd64 
2.9.1+dfsg1-3ubuntu4.5 [571 kB]
  Err http://mirror.pnl.gov/ubuntu/ trusty-updates/main grub-common amd64 
2.02~beta2-9ubuntu1.4
403  Forbidden
  Get:2 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main grub-common 
amd64 2.02~beta2-9ubuntu1.4 [1,676 kB]
  Err http://mirror.pnl.gov/ubuntu/ trusty/main squashfs-tools amd64 
1:4.2+20130409-2
403  Forbidden
  Get:3 http://security.ubuntu.com/ubuntu/ trusty-security/main 
libreoffice-calc amd64 1:4.2.8-0ubuntu3 [5,940 kB]
  Get:4 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main 
python3-problem-report all 2.14.1-0ubuntu3.19 [9,748 B]
  Get:5 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main python3-apport 
all 2.14.1-0ubuntu3.19 [75.3 kB]
  Get:6 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main apport all 
2.14.1-0ubuntu3.19 [182 kB]
  Get:7 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main apport-gtk all 
2.14.1-0ubuntu3.19 [9,558 B]
  Get:8 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main 
libnautilus-extension1a amd64 1:3.10.1-0ubuntu9.11 [52.1 kB]
  Get:9 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main linux-firmware 
all 1.127.18 [24.4 MB]
  Get:10 http://security.ubuntu.com/ubuntu/ trusty-security/main 
libreoffice-gnome amd64 1:4.2.8-0ubuntu3 [90.2 kB]
  Get:11 http://security.ubuntu.com/ubuntu/ trusty-security/main 
libreoffice-gtk amd64 1:4.2.8-0ubuntu3 [222 kB]
  Get:12 http://security.ubuntu.com/ubuntu/ trusty-security/main 
libreoffice-impress amd64 1:4.2.8-0ubuntu3 [1,208 kB]
  Get:13 http://security.ubuntu.com/ubuntu/ trusty-security/main 
libreoffice-writer amd64 1:4.2.8-0ubuntu3 [9,452 

[Touch-packages] [Bug 1516855] Re: apt shows downloads from -proposed pocket when it should use -updates pocket

2016-03-13 Thread Adam Conrad
apt selects which mirror/repo to download from based on their position
in sources.list.  If two mirrors contain the identical file, the first
one will be picked, even if it's not actually the one that would win
according to apt-cache policy.  This is by design (based on the idea
that you'll place closer/faster mirrors first), but I can see how it's
disconcerting in this case.

(We take advantage of this same feature in our default sources.list by
always placing -updates before security, so people only fall back to the
security mirror if their local updates is lagging behind).

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1516855

Title:
  apt shows downloads from -proposed pocket when it should use -updates
  pocket

Status in apt package in Ubuntu:
  New

Bug description:
  I wanted to test an SRU kernel in -proposed; as suggested by the Wiki
  page, I used the following apt preferences to pin the trusty-proposed
  pocket to a lower priority:

  $ cat /etc/apt/preferences.d/proposed-updates 
  Package: *
  Pin: release a=trusty-proposed
  Pin-Priority: 400

  After installing the kernel package, I started a normal update.

  apt-get -us dist-upgrade didn't show any updates coming via proposed,
  but the actual apt-get -u dist-upgrade claimed the packages were
  coming from trusty-proposed all the same:

  sarnold@hunt:/var/cache/apt$ sudo apt-get -us dist-upgrade | grep prop
  sarnold@hunt:/var/cache/apt$ sudo apt-get -u dist-upgrade
  Reading package lists... Done
  Building dependency tree   
  Reading state information... Done
  Calculating upgrade... Done
  The following packages were automatically installed and are no longer 
required:
linux-headers-3.13.0-66 linux-headers-3.13.0-66-generic
linux-image-3.13.0-66-generic linux-image-extra-3.13.0-66-generic
linux-tools-3.13.0-66 linux-tools-3.13.0-66-generic
  Use 'apt-get autoremove' to remove them.
  The following NEW packages will be installed:
linux-headers-3.13.0-68 linux-headers-3.13.0-68-generic
linux-image-3.13.0-68-generic linux-image-extra-3.13.0-68-generic
linux-tools-3.13.0-68 linux-tools-3.13.0-68-generic squashfs-tools
  The following packages will be upgraded:
apport apport-gtk click-reviewers-tools debootstrap firefox
firefox-locale-en flashplugin-installer fonts-opensymbol grub-common grub-pc
grub-pc-bin grub2-common krb5-locales libgssapi-krb5-2 libido3-0.1-0
libk5crypto3 libkrb5-3 libkrb5support0 libnautilus-extension1a
libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc
libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome
libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans
libreoffice-pdfimport libreoffice-presentation-minimizer
libreoffice-style-human libreoffice-style-tango libreoffice-writer
libxen-4.4 libxenstore3.0 libxml2 libxml2-dev libxml2-utils linux-firmware
linux-generic linux-headers-generic linux-image-generic linux-libc-dev
linux-tools-common linux-tools-generic nautilus nautilus-data
notify-osd-icons python-apport python-libxml2 python-problem-report
python3-apport python3-problem-report python3-uno unity-settings-daemon
uno-libs3 unzip ure wpasupplicant
  61 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
  Need to get 167 MB/213 MB of archives.
  After this operation, 276 MB of additional disk space will be used.
  Do you want to continue? [Y/n] 
  Err http://mirror.pnl.gov/ubuntu/ trusty-updates/main libxml2 amd64 
2.9.1+dfsg1-3ubuntu4.5
403  Forbidden
  Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main libxml2 amd64 
2.9.1+dfsg1-3ubuntu4.5 [571 kB]
  Err http://mirror.pnl.gov/ubuntu/ trusty-updates/main grub-common amd64 
2.02~beta2-9ubuntu1.4
403  Forbidden
  Get:2 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main grub-common 
amd64 2.02~beta2-9ubuntu1.4 [1,676 kB]
  Err http://mirror.pnl.gov/ubuntu/ trusty/main squashfs-tools amd64 
1:4.2+20130409-2
403  Forbidden
  Get:3 http://security.ubuntu.com/ubuntu/ trusty-security/main 
libreoffice-calc amd64 1:4.2.8-0ubuntu3 [5,940 kB]
  Get:4 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main 
python3-problem-report all 2.14.1-0ubuntu3.19 [9,748 B]
  Get:5 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main python3-apport 
all 2.14.1-0ubuntu3.19 [75.3 kB]
  Get:6 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main apport all 
2.14.1-0ubuntu3.19 [182 kB]
  Get:7 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main apport-gtk all 
2.14.1-0ubuntu3.19 [9,558 B]
  Get:8 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main 
libnautilus-extension1a amd64 1:3.10.1-0ubuntu9.11 [52.1 kB]
  Get:9 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main linux-firmware 
all 1.127.18 [24.4 MB]
  Get:10 http://security.ubuntu.com/ubuntu/ trusty-security/main 
l