Enabling esm-apps fails due to wrong package version installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
This bug is about an installation which has a non-LTS version of ubuntu-
For non-LTS versions, we do not ship the esm apt hooks, because they are never needed unless you want the package counts for esm, which are only available for LTS.
Thus, the hook executable is missing, and raising an error. This is reproducible in an LTS version as well, just by deleting the esm hook executable.
The fix involves only being defensive, checking for the existence of the executable before trying to run it.
[Test Case]
- On an attached LTS system, delete /usr/lib/
- try to enable esm-apps
- see the failure happen
- install ubuntu-
- delete /usr/lib/
- try to enable esm-apps
- see that it does not fail
[Regression Potential]
Since the fix makes it safer, there is no immediate regression potential for this.
[Original Description]
idk
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-53-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 26 01:55:34 2022
InstallationDate: Installed on 2022-10-23 (2 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to jammy on 2022-10-26 (0 days ago)
cloud-id.txt-error: Invalid command specified 'cloud-id'.
jobs-status.json: {"update_
ubuntu-
2022-10-23 12:19:15,962 - timer.py:(46) [DEBUG]: Executed job: update_messaging
2022-10-23 12:19:15,962 - timer.py:(46) [DEBUG]: Executed job: update_status
2022-10-23 19:39:28,049 - timer.py:(46) [DEBUG]: Executed job: update_messaging
2022-10-25 22:00:53,721 - timer.py:(46) [DEBUG]: Executed job: update_messaging
2022-10-25 22:00:53,725 - timer.py:(46) [DEBUG]: Executed job: update_status
information type: | Private → Public |
tags: | removed: need-amd64-retrace |
summary: |
- Enabling esm-apps fails due to missing hook executable + Enabling esm-apps fails due to wrong package version installed |
description: | updated |
Hello, Kyle,
Thanks for reporting this bug. I took a look at the logs sent and I have two questions:
1. Seems you have Ubuntu 22.04 installed (Jammy), but ubuntu- advantage- tools is 27.11.2~22.10.1 ; We would expect to see 27.11.2~22.04.1 there. Did you install this manually?
2. The error happens because the Client cannot find /usr/lib/ ubuntu- advantage/ apt-esm- hook - this file should be there when you install the ubuntu- advantage- tools package. Do you happen to know if this was removed and why?
As a suggestion, you could try reinstalling the package to check if things go back to normal: advantage- tools`
`sudo apt-get --reinstall install ubuntu-