f you deleted snap files manually, for instance, in order to clean up space, some .mount
files were left in /etc/systemd/system/
, like /etc/systemd/system/snap-core20-975.mount
.
You can try the following command:
grep -r What /etc/systemd/system/|sed -E 's/.*What=(.*)/\1/g'|xargs ls -la {}
The output will be:
ls: cannot access '/var/lib/snapd/snaps/snap-postman_81.snap': No such file or directory
-rw------- 2 root root 64233472 Mai 19 22:11 /var/lib/snapd/snaps/****.snap
....
So, now you know what snaps are missing and can decide what to do, e.g. remove obsolete .mount
files.