<div dir="ltr"><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM"># sudo apt purge snapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'snapd' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# snap remove core
error: cannot remove "core":
snap "core" is not removable: snap is used by the model
# snap remove bare_5
snap "bare_5" is not installed
</code></pre></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 12, 2023 at 10:04 PM Jeffrey Walton <<a href="mailto:noloader@gmail.com">noloader@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Nov 12, 2023 at 11:09 AM Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> wrote:<br>
><br>
> I'm running Ubuntu 23.10 on a I9 cpu + Nvidia Geforce RTX 2080 ti and the driver 545 right now. Everything works great,but not snap. I've tried to remove it as soon as I have installed Ubuntu from scratch,but something went wrong and now I see the following errors during boot :<br>
><br>
><br>
> /var/lib/snapd/snaps/bare_5.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/core22_607.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/core22_864.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/firefox_2517.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/firmware-updater_109.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/gnome-42-2204_141.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/gnome-42-2204_87.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/gtk-common-themes_1535.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/snap-store_1046.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/snap-store_959.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/snapd_18933.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/snapd_20290.snap: Can't open blockdev<br>
> /var/lib/snapd/snaps/snapd-desktop-integration_83.snap: Can't open blockdev<br>
><br>
><br>
> Anyway,snap seems to work ok (because I've reinstalled it with the purpose to remove it again when I was able to fix the errors) :<br>
><br>
><br>
> # snap list<br>
><br>
> Name Version Rev Tracking Publisher Notes<br>
><br>
> core 16-2.60.4 16202 latest/stable canonical✓ core<br>
> hello-world 6.4 29 latest/stable canonical✓ -<br>
><br>
> What I want to do really is to remove snap totally,including the errors that you see above. I tried different approaches,but none worked,errors keep coming back.<br>
<br>
It's been a while since Iremoved Snap on a Ubuntu 22.04 machine. I<br>
believe these are the steps I took:<br>
<br>
1. Stop Snap service<br>
2. Remove Snap with Apt, Apt-Get, etc. Also remove Firefox, and other<br>
Snap warez.<br>
3. Remove Systemd Snap files. This removes service files, links, etc.<br>
Once the list looks good, delete them<br>
<br>
# find /etc -iname '*snap*'<br>
<br>
4. Reboot the machine<br>
5. Delete /var/lib/snap and friends<br>
6. Disable Snap in APt:<br>
<br>
# cat /etc/apt/preferences.d/no-snap.pref<br>
Package: snapd<br>
Pin: release *<br>
Pin-Priority: -1<br>
<br>
7. Enable PPAs for packages of interest:<br>
<br>
# cat /etc/apt/sources.list.d/mozillateam-ubuntu-ppa-jammy.list<br>
deb <a href="https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/" rel="noreferrer" target="_blank">https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/</a> jammy main<br>
<br>
8. Install packages from PPA<br>
<br>
Jeff<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><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>