<div dir="ltr"><div>root@marietto-BHYVE:/home/marietto# df</div><br><div>File system 1K-blocchi Usati Disponib. Uso% Montato su</div><div><br></div>tmpfs 401648 1556 400092 1% /run<br>/dev/vda2 204795912 25656876 168663212 14% /<br>tmpfs 2008224 0 2008224 0% /dev/shm<br>tmpfs 5120 4 5116 1% /run/lock<br>/dev/vda1 523248 6216 517032 2% /boot/efi<br>tmpfs 401644 160 401484 1% /run/user/1000</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 24 feb 2023 alle ore 12:07 Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">root@marietto-BHYVE:/home/marietto# ls /snap/snapd<br><div>18357 current</div><div><br></div>root@marietto-BHYVE:/home/marietto# sudo umount /snap/snapd/18357<br>umount: /snap/snapd/18357: target is busy.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 24 feb 2023 alle ore 08:13 Grizzly via ubuntu-users <<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">23 February 2023 at 23:53, Mario Marietto wrote:<br>
Re: [snap] Unlinkat /var/snap/firef (at least in part)<br>
<br>
>I tried to remove every snap from Ubuntu 22.10 but I don't remember the<br>
>specific order. For sure I gave some wrong command and now I went inside a<br>
>black hole and I don't see the light anymore.<br>
<br>
I have done the same (albeit on Unity 22.10)<br>
<br>
$ snap list # to list all the existing snap packages<br>
<br>
$ sudo snap remove <name-of-the-package> # to remove the snap package<br>
<br>
$ sudo snap remove snap-store # as example, to remove the snap-store package<br>
<br>
Note: you can´t remove the `core´ snap package with sudo snap remove core, but <br>
we´ll do it later. Also kudos to Kevin Custer for the next step on snap core <br>
unmount!<br>
<br>
$ sudo umount /snap/snapd/XXXX # to unmount the snap core service<br>
<br>
Note: replace the XXXX with the ID number inside the core directory on your <br>
system. You can find it by running the df command and getting something like <br>
/dev/loop4 27776 27776 0 100% /snap/snapd/7264.<br>
<br>
$ sudo apt purge snapd # to remove and purge the snapd package and all of its <br>
related services<br>
<br>
$ sudo rm -rf ~/snap /snap /var/snap /var/lib/snapd # to remove all the folder <br>
# related to snap, if existing<br>
<br>
$ sudo nano /etc/apt/preferences.d/nosnap.pref<br>
<br>
# To prevent repository packages from triggering the installation of snap,<br>
# this file forbids snapd from being installed by APT.<br>
<br>
Package: snapd<br>
Pin: release a=*<br>
Pin-Priority: -10<br>
<br>
# refresh package cache via command:<br>
<br>
$ sudo apt update<br>
<br>
<br>
Hope this helps<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Mario.<br></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Mario.<br></div>