How do I safely uninstall snaps which are installed by transitional packages? For example I upgraded a system from 20.04 to 22.04 which had chromium-browser installed. As a result, chromium-browser was upgraded to:
rc chromium-browser 1:85.0.4183.83-0ubuntu0.20.04.2 amd64 Transitional package - chromium-browser -> chromium snap
Which resulted in /snap/chromium being populated
I now need to uninstall this. I apt-get remove
'd the chromium
and chromium-browser
packages (then apt-get autoremove
'd all orphaned dependencies), however /snap/chromium did not get smaller. dpkg -l | grep chromium
still shows the chromium-browser
line shown above.
what is the right way to remove this snap, without apt transitional packages getting out-of-sync?
I ask because I have a bunch of other /snap/* directories I want to clean up to recover disk space on this smaller aging system, however they must have been installed by apt and I do not want to remove the snap packages directly.
chromium
converted to snap package prior to 20.04, thus it was a snap package in 20.04 & no conversion or change occurred on release-upgrade to later releases than 20.04 as snap packages don't change. If you note your paste it was installed at 20.04 as if the change occurred at 22.04 you would have pasted1:85.0.4183.83-0ubuntu2
– guiverc Sep 13 '22 at 02:57Does APT track snap packages after the transition? Or are they just snap, and I can remove them safely via snap directly without apt getting out of sync? @guiverc
– flieslikeabrick Sep 13 '22 at 02:58