Thanks for your responses. We'll have to remove the hanging change
manually before we can move to 2.73. The following steps should remove
the hanging change and move snapd to a version with the fix:

# install jq, if not already installed
$ sudo apt install jq

# get the ID of the hanging remove change, I'll refer to it below as <ID>
$ snap changes

# stop snapd and backup its state
$ sudo systemctl stop snapd.{service,socket}
$ sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json.bk

# remove the offending change. Replace <ID> with the change ID obtained above 
but keep the surrounding double quotes
$ sudo jq 'del(.changes."<ID>")' /var/lib/snapd/state.json > state.json.new
$ sudo mv state.json.new /var/lib/snapd/state.json

# start snapd and refresh to a release with the fix
$ sudo systemctl start snapd.{socket,service}
$ sudo snap refresh --channel latest/beta snapd

This should resolve the issue of the hanging change. Please let me know
if you were able to resolve this.

Regarding the issue that triggered this, it's not clear from the logs
why there were files left in the snap user data and I wasn't able to
reproduce it with thunderbird. We're planning to do some work on
improving the reliability of `snap remove`. I've made a note of this
issue internally so we spend some more time on it when we start that.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130315

Title:
  error: snap "thunderbird" has "remove-snap" change in progress

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2130315/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to