ubuntu-advantage enable-esm should ensure correct package requirements are met
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Won't Fix
|
Medium
|
Erlon R. Cruz | ||
Trusty |
Fix Released
|
High
|
Erlon R. Cruz | ||
Xenial |
Won't Fix
|
Medium
|
Unassigned | ||
Bionic |
Won't Fix
|
Medium
|
Unassigned | ||
Eoan |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
[Impact]
To use ESM for 14.04 you must install 1.0.1ubuntu2.23 of apt apt-transport-https apt-utils libapt-inst1.5 libapt-pkg4.12
These should be checked and warn/error/install the correct packages when running enable-esm
[Test Case]
* Deploy trusty container with a "apt" package version lower than version: "1.0.1ubuntu2.23"
** lxc launch ubuntu:d57cf522816f <CONTAINER_NAME>
For instance image iD "d57cf522816f" contains apt : 1.0.1ubuntu2.17
* lxc exec <CONTAINER_NAME> bash
* Install ubuntu-
* ubuntu-advantage enable-esm <token>
* sudo apt-get update
* sudo apt-get upgrade
Err https:/
HttpError401
Err https:/
.......
E: Failed to fetch https:/
E: Failed to fetch https:/
E: Failed to fetch https:/
E: Failed to fetch https:/
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Expected behaviour:
Get:3 https:/
Get:6 https:/
......
If user installs u-a-tools and do not upgrade apt, then complains are that it does not work all the time as expected (see above ^)
Would be better to add some Depends: (as describe by juliank) to avoid users updating the tool but keeping an older version of apt that may introduce esm upgrade problem/failure.
[Potential Regression]
* One situation that Andreas brought up that is worth mentioning here, is that apparently some customer may have intentionally disabled "trusty-updates". If it's the case, then one would need to enable "trusty-updates" back temporary in order to upgrade the "ubuntu-
* We simply instruct u-a-tools to update apt (and its derived binary pkg) to a more recent version to avoid problems.
* apt in Trusty is unlikely to change now. There may be other ESM uploads here and there in the future, but Trusty itself is frozen now.
[Other Info]
* Fix has been proposed and agreed by foundation team.
* rmadison:
apt | 1.0.1ubuntu2 | trusty
apt | 1.0.1ubuntu2.19 | trusty-security
apt | 1.0.1ubuntu2.23 | trusty-updates
Related branches
- Andreas Hasenack: Approve
- Canonical Server: Pending requested
-
Diff: 32 lines (+12/-1)2 files modifieddebian/changelog (+6/-0)
debian/control (+6/-1)
description: | updated |
Changed in ubuntu-advantage-tools (Ubuntu Trusty): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in ubuntu-advantage-tools (Ubuntu): | |
status: | Triaged → Won't Fix |
description: | updated |
tags: | added: sts |
description: | updated |
description: | updated |
Changed in ubuntu-advantage-tools (Ubuntu Trusty): | |
assignee: | nobody → Erlon R. Cruz (sombrafam) |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in ubuntu-advantage-tools (Ubuntu Eoan): | |
status: | Won't Fix → In Progress |
Changed in ubuntu-advantage-tools (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-advantage-tools (Ubuntu Eoan): | |
assignee: | nobody → Erlon R. Cruz (sombrafam) |
Changed in ubuntu-advantage-tools (Ubuntu Bionic): | |
assignee: | nobody → Erlon R. Cruz (sombrafam) |
Changed in ubuntu-advantage-tools (Ubuntu Xenial): | |
assignee: | nobody → Erlon R. Cruz (sombrafam) |
Changed in ubuntu-advantage-tools (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in ubuntu-advantage-tools (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in ubuntu-advantage-tools (Ubuntu Eoan): | |
importance: | High → Low |
Changed in ubuntu-advantage-tools (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in ubuntu-advantage-tools (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in ubuntu-advantage-tools (Ubuntu Eoan): | |
importance: | Low → Medium |
I've seen this easily > a dozen times