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