Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How do I remove snaps

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
urdrwho10
Posts: 118
Joined: 2020-03-04 21:53
Has thanked: 18 times
Been thanked: 4 times

How do I remove snaps

#1 Post by urdrwho10 »

Ok, it is not my normal to install and use SNAPS. But I did so and now I'd like to remove it. I can't just un-tick it in Discover. Must I do the removal bit by bit line for line? I didn't even know about the gtk-common-themes from Snaps. I wanted to install Cheese through Snaps because it seems to work better for me.

Never knew I was going to get all these loop folders?

Code: Select all

/dev/loop1           128      128         0 100% /snap/bare/5
/dev/loop5         41472    41472         0 100% /snap/snapd/20671
/dev/loop0         36096    36096         0 100% /snap/cheese/40
/dev/loop2         76032    76032         0 100% /snap/core22/1122
/dev/loop4         93952    93952         0 100% /snap/gtk-common-themes/1535
/dev/loop3        508928   508928         0 100% /snap/gnome-42-2204/141
tmpfs             790384       68    790316   1% /run/user/1000

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1412
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: How do I remove snaps

#2 Post by None1975 »

Snap is a EVIL....

First, make sure that you don’t have any snap packages installed.

Code: Select all

snap list
If there are any, remove those snap packages first.

Code: Select all

sudo snap remove package1 package2 package3
then

Code: Select all

sudo apt remove --purge snapd
This step removes all the snaps installed. You can verify this by using

Code: Select all

snap list
Once snaps are removed, you can clear the leftover data by issuing the following command:

Code: Select all

sudo rm -rf /var/cache/snapd/
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

urdrwho10
Posts: 118
Joined: 2020-03-04 21:53
Has thanked: 18 times
Been thanked: 4 times

Re: How do I remove snaps

#3 Post by urdrwho10 »

Thanks.
sudo apt remove --purge snapd created a warning at the end

Code: Select all

g: warning: while removing snapd, directory '/lib/systemd/system-generators' not empty so not removed
snap list show empty so I guess everything has been cleaned out.

urdrwho10
Posts: 118
Joined: 2020-03-04 21:53
Has thanked: 18 times
Been thanked: 4 times

Re: How do I remove snaps

#4 Post by urdrwho10 »

Is flathub ok or is that snaps evil twin? I'll try cheese again from the normal depository.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1412
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: How do I remove snaps

#5 Post by None1975 »

urdrwho10 wrote: 2024-02-22 19:37 Thanks.
sudo apt remove --purge snapd created a warning at the end
You can ignore this message. It is harmless.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1412
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: How do I remove snaps

#6 Post by None1975 »

urdrwho10 wrote: 2024-02-22 19:39 Is flathub ok or is that snaps evil twin? I'll try cheese again from the normal depository.
Flathub is OK (maybe) but snaps not ok....
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply