2

this may be a stupid question, but how do i uninstall snap package? I'm using Kubuntu 24.04 and Itried to install darktable via snap

snap install darktable

After trying to use it i found a lot of problems with it (cannot access mounted drives, doesn't support the camera lens i have though the lensfun is installed and up-to-date, the whole user experience is very slow etc). I found a ppa repo with the latest darktable, so i added and installed it via apt and that solved all the issues. Now I want to uninstall the snap version

snap remove darktable

But this doesn't work. I get:

error: cannot perform the following tasks:
- Make snap "darktable" unavailable to the system (internal error: only regular files are supported, got "d---------" instead)

Does anyone know how to remove snap package? So far the whole experience with it was terrible and honestly i don't know what it is even good for. It all fells kind of 'testing' or 'beta' version though i expected it to be a mature and robust project.

I found the same question (unansvered) here askubuntu and i also asked the same question (without any solution found) here forum.snapcraft.io

Some details:

root:/var/lib/snapd/cache# snap list | grep darktable
darktable                5.0.0                       289    latest/stable    sergiusens   -
root:/var/lib/snapd/cache# snap --version
snap    2.67
snapd   2.67
series  16
ubuntu  24.04
kernel  6.8.0-51-generic

Thanks for any advice

matej
  • 141

1 Answers1

1

It is possible that darktable has packages under another name. List all Snap packages, and then remove the correct ones by specific names. In terminal, do the following:

  • Check and fix any broken nap packages by performing,` in sequence:
    • sudo apt update --fix-missing
    • sudo apt install -f
    • sudo dpkg --configure -a
    • sudo apt clean
  • Perform snap list to list all installed Snap apps.
  • For each item related to darktable, perorm sudo snap remove purge <package_name>.
  • Perform sudo apt autoremove to clean up.

BTW, it is possible to completely remove all Snap applications, and then snap and snapd, to remove Snap itself, if you prefer to use traditional packages (and Windows apps under wine).