Attaching an Ubuntu Pro key fails when snapd is withheld
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Renan Rodrigo | ||
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 affects users who hold the snapd package so it is not installed.
When trying to attach, they'll see a failure because snapd cannot be installed.
snapd is required for livepatch. When it is absent, we try to install it. If we cannot, then the client should perform a partial attach - not enabling Livepatch, but still enabling esm, for instance - instead of failing completely.
[Test Case]
- On a LTS system compatible with Livepatch, hold the snapd package in apt with a negative pin in a preferences file
- uninstall snapd, if present
- try to attach, see it fail
- install ubuntu-
- try to attach, verify that it works, but Livepatch is disabled
- try to enable Livepatch, see that it can't because snapd cannot be installed
- unhold snapd
- enable Livepatch, and check that it works
[Regression Potential]
If snapd is not installed for any other reason, attach will also skip enabling Livepatch and try to proceed. This happens to be acceptable behavior, and even intended, as a complete fail would be worse. Once snapd can be installed again, Livepatch enablement will be back to normal.
[Original Description]
My system report error
I am not using snap
I am not able to use the ubuntu pro advantage without snap ?
and how do I know what kernel is better for my pc ?
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-53-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 23 00:21:55 2022
InstallationDate: Installed on 2022-09-30 (54 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-id.txt-error: Invalid command specified 'cloud-id'.
jobs-status.json: {"update_
livepatch-
information type: | Private → Public |
Changed in ubuntu-advantage-tools (Ubuntu): | |
status: | Invalid → Confirmed |
Changed in ubuntu-advantage-tools (Ubuntu): | |
assignee: | nobody → Renan Rodrigo (renanrodrigo) |
tags: | added: sc-1356 |
tags: | removed: need-amd64-retrace |
Changed in ubuntu-advantage-tools (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
Hi ptdas,
Unfortunately, we need snapd to enable the Livepatch service, which is delivered as through a snap. /ubuntu. com/security/ livepatch
If you want to decide if that service is usefull for your machine or not, you can read more about this service here:
https:/
However, if you still want to attach to your pro subscription, but don't want to use the Livepatch service, you can still attach using this mechanism: /github. com/canonical/ ubuntu- advantage- client/ blob/main/ docs/howtoguide s/how_to_ attach_ with_config_ file.md
https:/
You will need to specify which services you want to be enable in your machine in that configuration file and if you want to verify which services can be enabled on your machine you can perform a simulation following this guide: /github. com/canonical/ ubuntu- advantage- client/ blob/main/ docs/howtoguide s/how_to_ simulate_ attach. md
https:/
Please let me know if those guides do not attend your needs or if you have more questions/problems with the tool