unable to remove core snap on classic when using snapd snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned |
Bug Description
After launching a fresh xenial VM with snapd 2.40 installed from the archives, I am able to install the snapd snap and use snapd from there. However, after doing this, if I install a snap with `base: core`, then even after removing the snap that has `base: core`, I cannot remove the core snap:
```
ubuntu@
Name Version Rev Tracking Publisher Notes
core18 20200124 1668 stable canonical✓ base
snapd 2.42.5 5754 stable canonical✓ snapd
test-snapd-
ubuntu@
snap 2.42.5
snapd 2.42.5
series 16
ubuntu 16.04
kernel 4.4.0-173-generic
ubuntu@
sudo snap install hello-world
hello-world 6.4 from Canonical✓ installed
ubuntu@
Name Version Rev Tracking Publisher Notes
core 16-2.42.5 8268 stable canonical✓ core
core18 20200124 1668 stable canonical✓ base
hello-world 6.4 29 stable canonical✓ -
snapd 2.42.5 5754 stable canonical✓ snapd
test-snapd-
ubuntu@
sudo snap remove hello-world
hello-world removed
ubuntu@
error: cannot remove "core": snap "core" is not removable
```
I think if the system is using the snapd snap, we should be able to remove the core snap as a base, if no app snaps are using "core" as a base snap.
Changed in snapd: | |
importance: | Undecided → High |
status: | New → Triaged |