Open mr-cal opened 8 months ago
@mr-cal Hey, how do I clean the APT cache to get back in the normal modus
@lupaulus Try sudo rm -r ~/.cache/snapcraft/stage-packages/
You might have to delete the ~/.cache/snapcraft
dir.
You might have to delete the
~/.cache/snapcraft
dir.
Yeah, back on track ! Don't forget to remove the root generated .snap
, prime
and stage
folders
What needs to get done
The apt cache may fail to be removed when snapcraft is run in destructive-mode as root, then not as root.
Snapcraft should provide a better error for when the apt-cache cannot be removed. This can be done by wrapping this block with a try/except and providing a useful and actionable error message.
You can reproduce this with:
Error:
Why it needs to get done
If snapcraft is run in destructive mode with sudo then without sudo, the error message doesn't help the user figure out how to clean their cache.