cannot enable esm-infra for ubuntu 14, amd 64

Bug #1855415 reported by Samrat Ghosh
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Won't Fix
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
Groovy
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned
Impish
Fix Released
Undecided
Unassigned

Bug Description

I have attached the machine using "sudo ua attach ###code".
then the following happens:
#command & output
$ sudo ua status
SERVICE ENTITLED STATUS DESCRIPTION
cc-eal yes n/a Common Criteria EAL2 Provisioning Packages
cis-audit no — Center for Internet Security Audit Tools
esm-infra yes disabled UA Infra: Extended Security Maintenance
fips yes n/a NIST-certified FIPS modules
fips-updates yes n/a Uncertified security updates to FIPS modules
livepatch yes n/a Canonical Livepatch service

Enable services with: ua enable <service>

     Account: <email address hidden>
Subscription: <email address hidden>

When I am trying to enable esm-infra, I am getting;
~$ sudo ua enable esm-infra
One moment, checking your subscription first
Updating package lists
Updating package lists
APT update failed.

I have tried
$ sudo rm -vf /var/lib/apt/lists/* -vf
$ sudo apt-get clean
$ sudo apt-get update
$ sudo ua enable esm-infra

But no luck. Please help.

$ lsb_release -rd
Description: Ubuntu 14.04.6 LTS
Release: 14.04

$ 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
        100 /var/lib/dpkg/status

Samrat Ghosh (samrat687)
description: updated
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hello,

the /var/log/ubuntu-advantage.log file will have more details, but:

**********************
do not just attach it to this bug, as it contains private data! In particular, YOUR UA CREDENTIALS are in that file!
**********************

Inspect it, look for backtraces or other informative errors. If you find nothing and feel like you want someone else to take a look, PLEASE sanitize it before posting anything.

Could you also please show the full output of "sudo apt-get update" and "apt-cache policy | grep esm" ?

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Samrat Ghosh (samrat687) wrote :
Download full text (20.0 KiB)

Here are the outputs.

$ sudo apt-get update
Ign http://dl.google.com stable InRelease
Ign http://archive.canonical.com trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://linux.dropbox.com trusty InRelease
Ign http://download.opensuse.org ./ InRelease
Get:1 http://download.virtualbox.org trusty InRelease [7,144 B]
Ign http://download.virtualbox.org trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://archive.canonical.com precise InRelease
Hit http://linux.dropbox.com trusty Release.gpg
Ign http://download.opensuse.org ./ Release.gpg
Hit http://archive.canonical.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty InRelease
Hit http://linux.dropbox.com trusty Release
Hit http://extras.ubuntu.com trusty Release.gpg
Ign http://download.opensuse.org ./ Release
Hit http://archive.canonical.com precise Release.gpg
Hit http://linux.dropbox.com trusty/main amd64 Packages
Hit http://extras.ubuntu.com trusty Release
Hit http://archive.canonical.com trusty Release
Get:2 https://dl.winehq.org trusty InRelease
Ign https://dl.winehq.org trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Hit http://dl.google.com stable Release.gpg
Hit http://linux.dropbox.com trusty/main i386 Packages
Hit http://archive.canonical.com precise Release
Get:3 https://dl.winehq.org xenial InRelease
Ign https://dl.winehq.org xenial InRelease
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://dl.google.com stable Release
Get:4 https://dl.winehq.org trusty/main amd64 Packages/DiffIndex
Ign https://dl.winehq.org trusty/main amd64 Packages/DiffIndex
Hit http://archive.canonical.com trusty/partner Sources
Hit http://ppa.launchpad.net trusty InRelease
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Ign http://archive.ubuntu.com trusty InRelease
Ign https://dl.winehq.org trusty/main i386 Packages/DiffIndex
Hit http://archive.canonical.com trusty/partner amd64 Packages
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.canonical.com trusty/partner i386 Packages ...

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Samrat,

Thanks for the data! The last stage in `ua enable esm-infra` is to do an `apt-get update` so that the new repository is ready for use. As you can see in your manual run, that fails on your system for reasons unrelated to ESM. (I've filed https://github.com/CanonicalLtd/ubuntu-advantage-client/issues/954 in our upstream bug tracker to cover this.)

Can you enable ESM Infra and then check if an `apt-get upgrade` pulls in packages from the ESM repositories? Once you've done that, please report back and move this bug report back to New.

Thanks!

Dan

Revision history for this message
Joshua Powers (powersj) wrote :

You have one of the largest apt lists I have ever seen! You will notice that your attempt to update fails. There are a number of repos that return a 403 (forbidden) or 404 (missing).

When ubuntu-advantage-tools activates ESM, it attempts to do an apt update. If that fails, as it does in your case, the enable is reverted.

Therefore, if you clean up your various repos, and get apt update to exit cleanly, enabling ubuntu-advantage-tools should work.

Revision history for this message
Samrat Ghosh (samrat687) wrote :

OK thanks all. I wii try these and update here the results!

Revision history for this message
Samrat Ghosh (samrat687) wrote :

Hi Dan, `apt-get upgrade` pulls packages from the ESM repositories but couldn't upgrade. then it reverted to 'disable'. Then I followed the steps provided by Joshua and removed the repos. Then ESM is enabled and the upgrade is going smoothly.

Thank you guys for your time and help.

Revision history for this message
Bryce Harrington (bryce) wrote :

Glad to see Josh's advice resolved the problems.

Changed in ubuntu-advantage-tools (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
decimus (h-matthias-u) wrote :

This bug is now handled in the respective upstream repository here:

https://github.com/canonical/ubuntu-advantage-client/issues/954

They plan to improve the behaviour described here, but as of 2020-06 haven't yet. So status "Fix Released" is not exactly true right now …

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

As you mentioned it is not fixed yet, so I am changing the status to Triaged. I tried to find a way to link the Github issue to this bug report but I failed.

Changed in ubuntu-advantage-tools (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Chad Smith (chad.smith) wrote :

Just an update here while cleaning out stale bugs.
  This fix for better error messaging has been released to Xenial 16.04 and more recent Ubuntu released with the publish of ubuntu-advantage-tools version 27.0. The messaging fix will not make it into Trusty 14.04. As such I have added specific FixReleased bug items to mark it as fixed in newer Ubuntu.

Changed in ubuntu-advantage-tools (Ubuntu Trusty):
status: New → Won't Fix
Changed in ubuntu-advantage-tools (Ubuntu Bionic):
status: New → Fix Released
Changed in ubuntu-advantage-tools (Ubuntu Hirsute):
status: New → Fix Released
Changed in ubuntu-advantage-tools (Ubuntu Xenial):
status: New → Fix Released
Changed in ubuntu-advantage-tools (Ubuntu Focal):
status: New → Fix Released
Changed in ubuntu-advantage-tools (Ubuntu Groovy):
status: New → Fix Released
Changed in ubuntu-advantage-tools (Ubuntu Impish):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.