Snap not allowing me to remove or refresh anything

Solution 1:

This was the top search item for the topic as I was trying to remove a snap whilst it was "auto-refreshing". The better answer in that it allows you to stop the refresh and take action is covered in Ask Ubuntu.

In effect:

# Check for snap changes
sudo snap changes

# This will list something like
ID         Status   Spawn                  Ready   Summary
<number>   Doing    today at 10:58 CEST    -       Auto-refresh snap <snap_program>

# Note the ID for the refresh and abort it
sudo snap abort <number>

# You must check changes until it has been actioned
sudo snap changes

# This will now list something like
ID         Status   Spawn                  Ready   Summary
<number>   Error    today at 10:58 CEST    -       Auto-refresh snap <snap_program>

# The take remedial action, in my case remove
sudo snap remove <snap_program>

Tested with microk8s on Ubuntu 18.04 and chromium on Ubuntu 20.04.

Solution 2:

You can change schedule for automatic updates

Managing updates | Snapcraft documentation