/var/lib/snapd/snaps/*.snap: can't open blockdev errors keep coming back despite several tries to remove totally snap

Mario Marietto marietto2008 at gmail.com
Sun Nov 12 21:07:01 UTC 2023


# 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


On Sun, Nov 12, 2023 at 10:04 PM Jeffrey Walton <noloader at gmail.com> wrote:

> On Sun, Nov 12, 2023 at 11:09 AM Mario Marietto <marietto2008 at gmail.com>
> wrote:
> >
> > 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 :
> >
> >
> > /var/lib/snapd/snaps/bare_5.snap: Can't open blockdev
> > /var/lib/snapd/snaps/core22_607.snap: Can't open blockdev
> > /var/lib/snapd/snaps/core22_864.snap: Can't open blockdev
> > /var/lib/snapd/snaps/firefox_2517.snap: Can't open blockdev
> > /var/lib/snapd/snaps/firmware-updater_109.snap: Can't open blockdev
> > /var/lib/snapd/snaps/gnome-42-2204_141.snap: Can't open blockdev
> > /var/lib/snapd/snaps/gnome-42-2204_87.snap: Can't open blockdev
> > /var/lib/snapd/snaps/gtk-common-themes_1535.snap: Can't open blockdev
> > /var/lib/snapd/snaps/snap-store_1046.snap: Can't open blockdev
> > /var/lib/snapd/snaps/snap-store_959.snap: Can't open blockdev
> > /var/lib/snapd/snaps/snapd_18933.snap: Can't open blockdev
> > /var/lib/snapd/snaps/snapd_20290.snap: Can't open blockdev
> > /var/lib/snapd/snaps/snapd-desktop-integration_83.snap: Can't open
> blockdev
> >
> >
> > 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) :
> >
> >
> > # snap list
> >
> > Name         Version    Rev    Tracking       Publisher   Notes
> >
> > core         16-2.60.4  16202  latest/stable  canonical✓  core
> > hello-world  6.4        29     latest/stable  canonical✓  -
> >
> > 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.
>
> It's been a while since Iremoved Snap on a Ubuntu 22.04 machine. I
> believe these are the steps I took:
>
> 1. Stop Snap service
> 2. Remove Snap with Apt, Apt-Get, etc. Also remove Firefox, and other
> Snap warez.
> 3. Remove Systemd Snap files. This removes service files, links, etc.
> Once the list looks good, delete them
>
>     # find /etc -iname '*snap*'
>
> 4. Reboot the machine
> 5. Delete /var/lib/snap and friends
> 6. Disable Snap in APt:
>
>     # cat /etc/apt/preferences.d/no-snap.pref
>     Package: snapd
>     Pin: release *
>     Pin-Priority: -1
>
> 7. Enable PPAs for packages of interest:
>
>    # cat /etc/apt/sources.list.d/mozillateam-ubuntu-ppa-jammy.list
>    deb https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/ jammy main
>
> 8. Install packages from PPA
>
> Jeff
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


-- 
Mario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20231112/bf7af8ba/attachment-0001.html>


More information about the ubuntu-users mailing list