snap "core" is not removable: snap is used by the model (and ubuntu-advantage-tools used to install it by default on all installs)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch Client |
Fix Released
|
Critical
|
Unassigned | ||
snapd (Ubuntu) |
New
|
Critical
|
Unassigned | ||
ubuntu-advantage-tools (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
ubuntu-release-upgrader (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
ubuntu-
it seems like instead of installing core22/stable on jammy systems, it installs latest/stable with core snap base, making core snap uninstallable.
I will try to reproduce this, but this is off.
Jammy+ systems, must not have core snap as unremovable anymore.
canonical-
[Testcase]
snap install canonical-
snap refresh --channel core/stable canonical-
snap refresh --channel latest/stable
snap remove core (impossible)
(refresh to core18/stable, core20/stable latest/stable to get rid of old revisions that use core)
$ grep -h '^base:' /snap/*
base: bare
base: core18
base: core20
base: core22
$ snap remove core
error: cannot remove "core": snap "core" is not removable: snap is used by the model
Potentially on my system previous revisions of the snap still hold back core snap being installed.
=== summary
snapd: once core snap is installed, it can never be removed
canonical-
ubuntu-
ubuntu-
===
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 6.2.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 12 00:22:38 2023
InstallationDate: Installed on 2023-04-28 (166 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-id.txt-error: Invalid command specified 'cloud-id'.
uaclient.conf:
contract_url: https:/
log_level: debug
tags: | removed: need-amd64-retrace |
tags: | added: rls-nn-incoming |
Changed in snapd (Ubuntu): | |
importance: | Undecided → Critical |
Changed in ubuntu-advantage-tools (Ubuntu): | |
importance: | Critical → Low |
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | High → Low |
Changed in ubuntu-advantage-tools (Ubuntu): | |
status: | New → Invalid |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Invalid |
Changed in canonical-livepatch-client: | |
status: | Fix Committed → Fix Released |
description: | updated |
description: | updated |
description: | updated |
summary: |
- ubuntu-advantage-tools installs "core" snap even though canonical- - livepatch snap exists for every base + snap "core" is not removable: snap is used by the model (and ubuntu- + advantage-tools used to install it by default on all installs) |
description: | updated |
description: | updated |
tags: | added: y2038 |
information type: | Public → Public Security |
Changed in snapd (Ubuntu): | |
milestone: | none → ubuntu-24.04 |
Just confirmed by launching daily jammy VM, performed `pro enable` with company token, and core snap got installed and now cannot be removed.