"snap revert" doesn't remove the reverted version

Bug #1611485 reported by Bruno Nova
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Expired
High
Unassigned

Bug Description

After "snap revert" does its job, the reverted version is still installed, mounted and enabled.

I don't see any way to revert that "revert" other than removing the snap and reinstalling it (which deletes all user data).

"snap remove" doesn't have an option to remove just one version of a snap (maybe it should have?).
"snap refresh" doesn't update the snap to the reverted version.

I think the reverted version should be removed (including data in $HOME/snap/ and /var/snap/).

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snapd 2.11+0.16.04
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Aug 9 20:25:58 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-04-25 (105 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bruno Nova (brunonova) wrote :
Revision history for this message
John Lenton (chipaca) wrote :

snap remove does have --revision (I'm not sure that's released into Ubuntu, but if it's not there yet it will be soon).

An explicit snap refresh of the snap will move you forwards to the locally available revision you reverted away from (this is WIP but should land later this week, and released perhaps with the next drop).

If the snap gets further updated in the store, snap refresh will pick up the new revision; this already works.

Revision history for this message
Ads20000 (ads20000) wrote :

Still not landed @John Lenton, I reverted to revision 6 of LibreOffice and running `snap refresh libreoffice` does not update me back to revision 7.

$ snap refresh libreoffice
error: cannot refresh "libreoffice": snap "libreoffice" has no updates available

$ snap list
Name Version Rev Developer Notes
libreoffice 5.2.1.2 6 canonical -
ubuntu-core 16.04.1 423 canonical -

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Ads20000 (ads20000) wrote :

I don't agree with Bruno Nova's preferred solution, I would rather, as you said John, an explicit snap refresh aimed at a specific package would update it back to the latest version. Also I tried running the command below, the LibreOffice Snap is not in use...

$ snap refresh libreoffice --revision 7
error: cannot perform the following tasks:
- Remove snap "libreoffice" (7) from the system (internal error: cannot discard snap "libreoffice": still active)

Changed in snapd (Ubuntu):
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

We have landed many improvements around revert and refresh. It should now be possible to go to any version you have installed via revert. Is there anything missing in this bug?

Changed in snapd (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd (Ubuntu) because there has been no activity for 60 days.]

Changed in snapd (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.