[Bug 1851858] Re: adds ESM to sources.list.d unconditionally, despite it being x86-only
Andreas Hasenack
andreas at canonical.com
Wed Nov 27 14:00:37 UTC 2019
= Trusty verification =
# install current uat from updates on ppc64el
ubuntu-advantage-tools:
Installed: 19.6~ubuntu14.04.3
Candidate: 19.6~ubuntu14.04.3
Version table:
*** 19.6~ubuntu14.04.3 0
500 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main ppc64el Packages
ubuntu at trusty-ppc64el:~$ uname -m
ppc64le
ubuntu at trusty-ppc64el:~$ dpkg --print-architecture
ppc64el
# apt-get update hits the esm repo. It doesn't fail because the server published
# empty repositories for non-x86
ubuntu at trusty-ppc64el:~$ sudo apt-get update|grep esm
Get:1 https://esm.ubuntu.com trusty-infra-security InRelease
Get:2 https://esm.ubuntu.com trusty-infra-updates InRelease
Get:3 https://esm.ubuntu.com trusty-infra-security/main ppc64el Packages
Get:4 https://esm.ubuntu.com trusty-infra-security/main Translation-en_US
Get:5 https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US
Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en_US
Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en
Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US
Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en
# verify that esm pinning was installed and is negative:
ubuntu at trusty-ppc64el:~$ apt-cache policy | grep esm
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-updates/main ppc64el Packages
origin esm.ubuntu.com
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main ppc64el Packages
origin esm.ubuntu.com
# upgrade to the package in proposed:
ubuntu at trusty-ppc64el:~$ apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
Installed: 19.6~ubuntu14.04.4
Candidate: 19.6~ubuntu14.04.4
Version table:
*** 19.6~ubuntu14.04.4 0
500 http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed/main ppc64el Packages
# verify esm repo isn't hit anymore:
ubuntu at trusty-ppc64el:~$ sudo apt-get update|grep esm
ubuntu at trusty-ppc64el:~$
1
# verify esm pinning isn't in place anymore:
ubuntu at trusty-ppc64el:~$ apt-cache policy | grep esm
ubuntu at trusty-ppc64el:~$
ubuntu at trusty-ppc64el:~$ ll /etc/apt/preferences.d/
total 8
drwxr-xr-x 2 root root 4096 Nov 27 13:34 ./
drwxr-xr-x 7 root root 4096 Nov 27 13:33 ../
ubuntu at trusty-ppc64el:~$
# update: the server-side changes were deployed already, and now esm is
# correctly no longer advertised for non-x86 systems:
ubuntu at trusty-ppc64el:~$ sudo ua enable esm-infra
One moment, checking your subscription first
ESM Infra is not available for platform ppc64le.
Supported platforms are: amd64, i386, i686, x86_64
# repeating the test on x86 shows no change in behaviour
# current version from updates:
ubuntu at t1:~$ apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
Installed: 19.6~ubuntu14.04.3
Candidate: 19.6~ubuntu14.04.3
Version table:
*** 19.6~ubuntu14.04.3 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
# esm repo is hit:
ubuntu at t1:~$ sudo apt-get update | grep esm
Get:6 https://esm.ubuntu.com trusty-infra-security InRelease
Get:7 https://esm.ubuntu.com trusty-infra-updates InRelease
Get:9 https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
...
# esm pinned and negative:
ubuntu at t1:~$ apt-cache policy | grep esm
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-updates/main amd64 Packages
origin esm.ubuntu.com
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main amd64 Packages
origin esm.ubuntu.com
# with the package from proposed:
ubuntu at t1:~$ apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
Installed: 19.6~ubuntu14.04.4
Candidate: 19.6~ubuntu14.04.4
Version table:
*** 19.6~ubuntu14.04.4 0
500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
# esm repo is still hit:
ubuntu at t1:~$ sudo apt-get update | grep esm
Hit https://esm.ubuntu.com trusty-infra-security InRelease
Hit https://esm.ubuntu.com trusty-infra-updates InRelease
Hit https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
...
# and esm pinning is still there with a negative value:
ubuntu at t1:~$ apt-cache policy | grep esm
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-updates/main amd64 Packages
origin esm.ubuntu.com
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main amd64 Packages
origin esm.ubuntu.com
Trusty verification completed and succeeded.
** Tags removed: verification-needed-trusty
** Tags added: verification-done-trusty
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to ubuntu-advantage-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1851858
Title:
adds ESM to sources.list.d unconditionally, despite it being x86-only
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-advantage-script/+bug/1851858/+subscriptions
More information about the Ubuntu-server-bugs
mailing list