Failed to install most of the snaps: cannot set privileged capabilities: Operation not permitted

root@instance ~# snap install nextcloud
error: cannot perform the following tasks:
- Run configure hook of "nextcloud" snap if present (run hook "configure": cannot set privileged capabilities: Operation not permitted)

Similar situation for most of the snap apps, so it’s probably a snap issue.

I raised an issue before on nextcloud’s github repo, so I will not repeat myself.

For details, please refer to Installation fails with Operation not permitted · Issue #3331 · nextcloud-snap/nextcloud-snap · GitHub

Some important context: @HittyGubby accidentally deleted /usr/bin and had to restore it. Things haven’t worked since then, so I figure the restoration wasn’t 100%. I don’t know exactly what snapd is trying to do here, though, so coming up with troubleshooting steps to narrow down the exact problem has been difficult.

2 Likes