Public bug reported:

Hi,

Is there a way to list the previous revisions of a snap in a specific
channel and then allow the snap client to revert or install specific
revisions?

I understand `snap revert` exists, but it only allows to revert to the
last installed and that's it.

My use case is this, on an application unit using the ruby snap, it was
automatically updated around 7 days ago. It wasn't until recently when
we wanted to update the application where the latest ruby snap broke gem
collection, see upstream bug[1]. But it wasn't known at the time so we
thought to try the latest ruby from the latest channel (from
2.7/stable). So:

| snap refresh ruby --channel latest/stable

So now we want to revert:

| $ sudo snap revert ruby
| ruby reverted to 2.7.4
| $ sudo snap revert ruby
| error: cannot revert "ruby": no revision to revert to

What we actually want is to revert from 2.7.4 (231) in 2.7/stable to
2.7.4 (219) also in 2.7/stable.

The only way seems to be to find the correct URLs for both assertion
file and snap itself, download both, and to use `snap ack <assertion
file>` plus `snap install RjAgguCDAawLSJ3IByPe0R92xlNtrfGt_219.snap`.

[1]https://github.com/ruby/snap.ruby/issues/28

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Allow reverting to older revisions of a snap

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to