Cannot performe any task using snap

Hi , i keep getting an error when i do perform a task using snap , here is is the output

Canonical Livepatch snap cannot be installed: cannot perform the following tasks:

  • Fetch and check assertions for snap “core” (9993) (cannot accept some assertions:
  • broken assertion storage, searching for account-key: invalid active assertion filename: “active.9V73txvThBh1~”)

snap refresh core18 --edge
error: cannot refresh “core18”: cannot accept some assertions:

   - broken assertion storage, searching for account-key: invalid active assertion filename: "active.9V73txvThBh1~"

how do i resolve this issue

Try to locate and move the “active.9V73txvThBh1~” file away, then retry:

$ find / -name 'active.9V73txvThBh1~' 2>/dev/null
$ sudo mv _found_file_path_ "${HOME}"
1 Like

Hi, I’d be curious how your system go into this state, can you share some information with the following commands:

snap version
sudo journalctl --no-pager -u snapd
1 Like

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

the same error again.

Can you advice something? Thanks in advance.