It all started with Visual Studio Code installed via snap. There was an update, but the button was grayed out. From the terminal I tried to remove VSCode but I got the following error message:
sudo snap remove code
error: snap "code" has "auto-refresh" change in progress
From now on, I tried everything I found on similar questions including:
- rebooting
- removing snap cache
- removing snap user data (in home)
- removing snap entirely from Ubuntu (it failed)
- reinstalling snap trying to install
sudo snap refresh --beta core22(failed as well)
The current situation is:
/var/lib/snapd$ sudo snap list
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical\u2713 base
chromium 121.0.6167.160 2749 latest/stable canonical\u2713 -
code 05047486 150 latest/stable vscode\u2713 disabled,classic
core 16-2.61.1 16574 latest/stable canonical\u2713 core
core18 20231027 2812 latest/stable canonical\u2713 base
core20 20240111 2182 latest/stable canonical\u2713 base
core22 20240206 1194 latest/beta canonical\u2713 base,disabled
cups 2.4.7-3 1024 latest/stable openprinting\u2713 -
firefox 122.0.1-1 3779 latest/stable mozilla\u2713 -
firmware-updater 0+git.e8771be 109 latest/stable/\u2026 canonical\u2713 -
gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 198 latest/stable canonical\u2713 -
gnome-42-2204 0+git.ff35a85 141 latest/stable/\u2026 canonical\u2713 -
gtk-common-themes 0.1-81-g442e511 1535 latest/stable/\u2026 canonical\u2713 -
hexpad 1.7 9 latest/stable caozhen -
kde-frameworks-5-99-qt-5-15-7-core20 5.99.0 7 latest/stable kde\u2713 -
openscad 2021.01 339 latest/stable torsten-paul -
snapd 2.61.1 20671 latest/stable canonical\u2713 snapd
snapd-desktop-integration 0.9 83 latest/stable/\u2026 canonical\u2713 -
vlc 3.0.19 3721 latest/stable videolan\u2713 -
Now I am reinstalling to get rid of this message and restore snap.
My questions are:
Why there isn't a clear recovery path from a damaged snap status?
Should I stay away from snap in my new installation?
[Edit]
After removing completely snap and the snap-store I reinstalled as for https://snapcraft.io/install/snap-store/ubuntu#install
and then run:
sudo snap refresh snap-store --channel=latest/stable/ubuntu-23.10
This operation disabled the snap-store and now it's 6 days that nothing can be done.
raf@vmhw:~$ sudo snap changes
[sudo] password for raf:
ID Status Spawn Ready Summary
5 Abort 6 days ago, at 14:16 CET - Refresh "snap-store" snap from "latest/stable/ubuntu-23.10" channel
raf@vmhw:~$ sudo snap remove snap-store
error: snap "snap-store" has "refresh-snap" change in progress