Public bug reported:

This is what I did, I had snap installed and I noticed in Krusader all the 
squashfs partitions as "unknown", thinking are left overs from updates, I 
started unmounting them all.
Soon enough the system became unstable and firefox didn't run anymore, so 
instead of rebooting, that probably would've remounted everything and fixed the 
issue, I started removing snap packages to reinstall them, but with firefox it 
started to hang and so I killed the snap removal process.
Doing so I seemed to brick snap which is saying something is ongoing, but 
doesn't let me to abort the interrupted task nor update some snaps anymore.

Despite having done mistakes, why bricking snap is so easy?
1. snap should be able to recover broken installations
2. kusader/kubuntu should warn that unmounting snaps is dangerous

```
snap changes
ID   Status  Spawn               Ready               Summary
215  Done    today at 09:51 PST  today at 09:51 PST  Remove "core22" snap
216  Done    today at 09:51 PST  today at 09:51 PST  Install "core22" snap
217  Done    today at 09:52 PST  today at 09:52 PST  Remove "core24" snap
218  Done    today at 09:52 PST  today at 09:52 PST  Install "core24" snap
219  Undo    today at 09:52 PST  -                   Remove "firefox" snap
220  Done    today at 10:03 PST  today at 10:03 PST  Remove "core24" snap
221  Done    today at 10:03 PST  today at 10:03 PST  Install "core24" snap
222  Done    today at 10:03 PST  today at 10:03 PST  Remove "core20" snap
223  Done    today at 10:03 PST  today at 10:03 PST  Remove "core18" snap
224  Done    today at 10:04 PST  today at 10:04 PST  Remove "bare" snap
225  Done    today at 10:04 PST  today at 10:04 PST  Install "bare" snap
226  Done    today at 10:04 PST  today at 10:04 PST  Remove "gnome-3-28-1804" 
snap
227  Done    today at 10:04 PST  today at 10:04 PST  Remove "gnome-3-38-2004" 
snap
228  Done    today at 10:05 PST  today at 10:05 PST  Remove "shotcut" snap
229  Done    today at 10:05 PST  today at 10:05 PST  Install "shotcut" snap
230  Done    today at 10:07 PST  today at 10:07 PST  Remove "mesa-2404" snap
231  Done    today at 10:07 PST  today at 10:08 PST  Install "mesa-2404" snap
232  Done    today at 10:08 PST  today at 10:08 PST  Running service command 
for snap "mesa-2404"
233  Done    today at 10:08 PST  today at 10:08 PST  Remove "code" snap
234  Done    today at 10:08 PST  today at 10:18 PST  Remove "thunderbird" snap
```

```
marco@bellavista:~$ sudo snap abort 219
marco@bellavista:~$ sudo snap remove firefox
error: snap "firefox" has "remove-snap" change in progress
```

```
marco@bellavista:~$ snap tasks 219
Status  Spawn               Ready               Summary
Undo    today at 09:52 PST  today at 09:52 PST  Stop snap "firefox" services
Undo    today at 09:52 PST  today at 09:52 PST  Run remove hook of "firefox" 
snap if present
Done    today at 09:52 PST  today at 10:27 PST  Disconnect interfaces of snap 
"firefox"
Undone  today at 09:52 PST  today at 09:56 PST  Save data of snap "firefox" in 
automatic snapshot set #2
Undone  today at 09:52 PST  today at 09:56 PST  Remove aliases for snap 
"firefox"
Undone  today at 09:52 PST  today at 09:56 PST  Make snap "firefox" unavailable 
to the system
Error   today at 09:52 PST  today at 09:56 PST  Remove security profile for 
snap "firefox" (7423)
Done    today at 09:52 PST  today at 10:27 PST  Remove data for snap "firefox" 
(7355)
Done    today at 09:52 PST  today at 10:27 PST  Remove snap "firefox" (7355) 
from the system
Error   today at 09:52 PST  today at 09:56 PST  Remove data for snap "firefox" 
(7423)
Hold    today at 09:52 PST  today at 09:56 PST  Remove snap "firefox" (7423) 
from the system
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:dot-mozilla-firefox from snapd:personal-files
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:icon-themes 
from gtk-common-themes:icon-themes
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:mount-observe from snapd:mount-observe
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:host-hunspell from snapd:mount-control
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:cups-control 
from snapd:cups-control
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:etc-firefox 
from snapd:system-files
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:joystick 
from snapd:joystick
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:browser-sandbox from snapd:browser-support
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:gtk-3-themes 
from gtk-common-themes:gtk-3-themes
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:upower-observe from snapd:upower-observe
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:desktop-legacy from snapd:desktop-legacy
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:u2f-devices 
from snapd:u2f-devices
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:gsettings 
from snapd:gsettings
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:sound-themes 
from gtk-common-themes:sound-themes
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:x11 from 
snapd:x11
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:audio-record 
from snapd:audio-record
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:network from 
snapd:network
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:home from 
snapd:home
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:hardware-observe from snapd:hardware-observe
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:screen-inhibit-control from snapd:screen-inhibit-control
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:avahi-observe from snapd:avahi-observe
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:wayland from 
snapd:wayland
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:camera from 
snapd:camera
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:network-bind 
from snapd:network-bind
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:gnome-42-2204 from gnome-42-2204:gnome-42-2204
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:timezone-control from snapd:timezone-control
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:system-packages-doc from snapd:system-packages-doc
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:unity7 from 
snapd:unity7
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:removable-media from snapd:removable-media
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:opengl from 
snapd:opengl
Error   today at 09:52 PST  today at 09:56 PST  Disconnect firefox:desktop from 
snapd:desktop
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:host-usr-share-hunspell from snapd:system-files
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:login-session-observe from snapd:login-session-observe
Error   today at 09:52 PST  today at 09:56 PST  Disconnect 
firefox:audio-playback from snapd:audio-playback

......................................................................
Make snap "firefox" unavailable to the system

2025-12-02T09:56:31-08:00 INFO cannot link snap "firefox" back, some of
its data has already been removed

......................................................................
Remove security profile for snap "firefox" (7423)

2025-12-02T09:56:31-08:00 ERROR cannot find installed snap "firefox" at
revision 7423: missing file /snap/firefox/7423/meta/snap.yaml

......................................................................
Remove data for snap "firefox" (7423)

2025-12-02T09:56:31-08:00 ERROR unlinkat /var/snap/firefox/common/host-
hunspell/en_US.dic: read-only file system

......................................................................
Disconnect firefox:dot-mozilla-firefox from snapd:personal-files

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "dot-mozilla-
firefox" plug

......................................................................
Disconnect firefox:icon-themes from gtk-common-themes:icon-themes

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "icon-themes" plug

......................................................................
Disconnect firefox:mount-observe from snapd:mount-observe

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "mount-observe"
plug

......................................................................
Disconnect firefox:host-hunspell from snapd:mount-control

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "host-hunspell"
plug

......................................................................
Disconnect firefox:cups-control from snapd:cups-control

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "cups-control"
plug

......................................................................
Disconnect firefox:etc-firefox from snapd:system-files

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "etc-firefox" plug

......................................................................
Disconnect firefox:joystick from snapd:joystick

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "joystick" plug

......................................................................
Disconnect firefox:browser-sandbox from snapd:browser-support

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "browser-sandbox"
plug

......................................................................
Disconnect firefox:gtk-3-themes from gtk-common-themes:gtk-3-themes

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "gtk-3-themes"
plug

......................................................................
Disconnect firefox:upower-observe from snapd:upower-observe

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "upower-observe"
plug

......................................................................
Disconnect firefox:desktop-legacy from snapd:desktop-legacy

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "desktop-legacy"
plug

......................................................................
Disconnect firefox:u2f-devices from snapd:u2f-devices

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "u2f-devices" plug

......................................................................
Disconnect firefox:gsettings from snapd:gsettings

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "gsettings" plug

......................................................................
Disconnect firefox:sound-themes from gtk-common-themes:sound-themes

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "sound-themes"
plug

......................................................................
Disconnect firefox:x11 from snapd:x11

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "x11" plug

......................................................................
Disconnect firefox:audio-record from snapd:audio-record

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "audio-record"
plug

......................................................................
Disconnect firefox:network from snapd:network

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "network" plug

......................................................................
Disconnect firefox:home from snapd:home

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "home" plug

......................................................................
Disconnect firefox:hardware-observe from snapd:hardware-observe

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "hardware-observe"
plug

......................................................................
Disconnect firefox:screen-inhibit-control from snapd:screen-inhibit-control

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "screen-inhibit-
control" plug

......................................................................
Disconnect firefox:avahi-observe from snapd:avahi-observe

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "avahi-observe"
plug

......................................................................
Disconnect firefox:wayland from snapd:wayland

2025-12-02T09:56:34-08:00 ERROR snap "firefox" has no "wayland" plug

......................................................................
Disconnect firefox:camera from snapd:camera

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "camera" plug

......................................................................
Disconnect firefox:network-bind from snapd:network-bind

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "network-bind"
plug

......................................................................
Disconnect firefox:gnome-42-2204 from gnome-42-2204:gnome-42-2204

2025-12-02T09:56:34-08:00 ERROR snap "firefox" has no "gnome-42-2204"
plug

......................................................................
Disconnect firefox:timezone-control from snapd:timezone-control

2025-12-02T09:56:34-08:00 ERROR snap "firefox" has no "timezone-control"
plug

......................................................................
Disconnect firefox:system-packages-doc from snapd:system-packages-doc

2025-12-02T09:56:34-08:00 ERROR snap "firefox" has no "system-packages-
doc" plug

......................................................................
Disconnect firefox:unity7 from snapd:unity7

2025-12-02T09:56:34-08:00 ERROR snap "firefox" has no "unity7" plug

......................................................................
Disconnect firefox:removable-media from snapd:removable-media

2025-12-02T09:56:32-08:00 ERROR snap "firefox" has no "removable-media"
plug

......................................................................
Disconnect firefox:opengl from snapd:opengl

2025-12-02T09:56:34-08:00 ERROR snap "firefox" has no "opengl" plug

......................................................................
Disconnect firefox:desktop from snapd:desktop

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "desktop" plug

......................................................................
Disconnect firefox:host-usr-share-hunspell from snapd:system-files

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "host-usr-share-
hunspell" plug

......................................................................
Disconnect firefox:login-session-observe from snapd:login-session-observe

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "login-session-
observe" plug

......................................................................
Disconnect firefox:audio-playback from snapd:audio-playback

2025-12-02T09:56:33-08:00 ERROR snap "firefox" has no "audio-playback" plug
```

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: snap (not installed)
ProcVersionSignature: Ubuntu 6.8.0-88.89-generic 6.8.12
Uname: Linux 6.8.0-88-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Thu Dec  4 02:19:42 2025
InstallationDate: Installed on 2018-05-19 (2756 days ago)
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: snap
UpgradeStatus: Upgraded to noble on 2024-10-24 (406 days ago)

** Affects: snap (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

** Attachment added: "task_219.txt"
   
https://bugs.launchpad.net/bugs/2133866/+attachment/5931377/+files/task_219.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2133866

Title:
  snap easy to brick by interrupting one single removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/2133866/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to