I can't uninstall snap

i can’t uninstall snap to uninstall snap i ran this command
pamac remove snapd
when i ran this command it doesn’t uninstall snap the output : error: no operation specified (use -h for help)
and when i ran this command
sudo rm -r /var/lib/snapd
the output was really long


so what should i do to completely remove snap from my computer
I’m sorry if is hard to understand I’m bad at English thanks

what is the output from:
snap list

Snap have mounted images which you can’t delete like that. Use snap to remove the installed snaps first.

error: cannot list local snaps! cannot find publisher details: snap-declaration
(EISPgh06mRh1vordZY9OZ34QHdd7OrdR; series:16) not found

output from:
systemctl status snapd.service

Probably another broken, un-updated system, which you omited.
See: Error: cannot list local snaps! cannot find publisher details: snap-declaration

● snapd.service - Snap Daemon
Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; vendor pre>
Active: active (running) since Mon 2022-05-30 23:17:15 +06; 13h ago
TriggeredBy: ● snapd.socket
Main PID: 557 (snapd)
Tasks: 10 (limit: 4549)
Memory: 21.9M
CPU: 1min 35.464s
CGroup: /system.slice/snapd.service
└─ 557 /usr/lib/snapd/snapd

May 31 13:05:41 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "c>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "b>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "c>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "c>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "g>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "g>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "s>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "w>
May 31 13:06:02 Em snapd[557]: snapmgr.go:363: cannot read snap info of snap "w>
May 31 13:10:23 Em snapd[557]: stateengine.go:149: state ensure error: no state>

my system is up to date

so use what @zbe linked:

sudo systemctl disable snapd.socket
pamac remove --no-save snapd 
sudo rm -r /var/lib/snapd
**reboot**
sudo pacman -S snapd
sudo systemctl enable --now snapd.socket

it worked but snap is still in my computer how do i remove it completely and also snap list output is : No snaps are installed yet. Try 'snap install hello-world

so if you want to remove completely, open the add/remove software app and search for snap, click on installed and uninstall them…
then clear snap remnants from your system with these commands:

rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd

reboot, and now youre free form snap aids

the commands worked but when i tried to remove it from add/remove software app this error came :
Snapd

uninstall the libpamac-snap-plugin first then continue with the instructions from the post above…

it worked thanks

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.