In my case this happened because of empty files under /var/lib/snapd/assertions/…/, which was caused by an interrupted btrfs receive.
The errors were along these lines:
$ sudo snap install cups
error: cannot perform the following tasks:
- Fetch and check assertions for snap "cups" (1024) (cannot accept some assertions:
- broken assertion storage, looking for account: broken assertion storage, cannot decode assertion: assertion content/signature separator not found
No file names mentioned, so it wasn’t obvious what’s happening.
Removing all the empty files (and their parent dir) fixed this.
I think it would be great if snapd re-downloaded empty assertion files instead of failing.
Hi, I have the similar issue after restoring files from dead read-only btrfs filesystem. After re-installing all broken snap packages I can’t reinstall the only one – WebStorm by JetBrains.
# snap install webstorm --classic 64 ↵
error: cannot perform the following tasks:
- Fetch and check assertions for snap "webstorm" (351) (cannot verify snap "webstorm", no matching signatures found)
# grep -Rnw /var/lib/snapd/assertions -e 'webstorm'
./asserts-v0/snap-declaration/16/FY2LOqAxBypOW7jJnKh6i64HDgadNRYI/active:6:snap-name: webstorm
# rm -rf ./asserts-v0/snap-declaration/16/FY2LOqAxBypOW7jJnKh6i64HDgadNRYI
# snap install webstorm --classic