Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

How to remove a broken snap package

$
0
0

I have a problem with my Darktable snap package which started when I moved to using the .deb package of Darktable. I don't remember what I did at the time but now I have snapd which tells me that darktable is installed, but any attempts to remove the package fails.

I tried remove, --purge remove, refresh, revert, disable/enable, I tried restarting with systemctl but nothing works.

In a desperate attempt I have deleted the snap user darktable folder and files (in /home/snap) and I also have removed the darktable.snap file in /var/lib/snapd/snaps which probably was stupid and will not help in solving this issue...

This is the output of snap list -all concerning the darktable package :

Nom                                   Version              Révision         Suivi               Éditeur             Notesdarktable                             -                           129       latest/stable    sergiusens         broken

And here are a few output errors with various commands :

sudo snap disable darktableerreur : cannot perform the following tasks:- Rendre indisponible le paquet Snap "darktable" (129)  pour le système (internal error: only regular files are supported, got "d---------" instead)
sudo snap remove --purge darktableerreur : cannot perform the following tasks:- Rendre indisponible le paquet Snap "darktable" pour le système (internal error: only regular files are supported, got "d---------" instead)
sudo snap refresh darktableerreur : cannot perform the following tasks:- Rendre indisponible la révision actuelle du paquet Snap "darktable" (cannot restore unlinked snap: internal error: only regular files are supported, got "d---------" instead)- Rendre indisponible la révision actuelle du paquet Snap "darktable" (internal error: only regular files are supported, got "d---------" instead)

Output of systemctl --failed :

  UNIT                     LOAD   ACTIVE SUB    DESCRIPTION                           ● snap-darktable-129.mount loaded failed failed Mount unit for darktable, revision 129

Output of systemctl start snap-darktable-129.mount

L'unité (unit) snap-darktable-129.mount a commencéà démarrer.mount[45185]: mount: /snap/darktable/129: le périphérique spécial /var/lib/snapd/snaps/darktable_129.snap n'existe pas.kernel: /var/lib/snapd/snaps/darktable_129.snap: Can't lookup blockdevsystemd[1]: snap-darktable-129.mount: Mount process exited, code=exited, status=32/n/a

So I don't think it's related to darktable, probably something went wrong at some point when I tried to remove/reinstall/update the darktable snap package, but I don't know what.

Now I don't really know what to try.The only problem is that it prevents me from reinstalling the darktable snap package (if I ever wanted to...).

Thanks for any tips !


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>