Aw, snap!

home | blog | Terrible people and places | Covid-19 links | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts




Did a snap update ruin your day by breaking a package with a version that had a bunk release?
How can fix it (either quickly and dangerously or slowly and safely)?

Long story short
When you have a working version of the package... keep it!
  snap download packagename
  snap refresh --hold=forever packagename

This ensures you have a copy to re-install as it seems snaps "dissapear" quickly when new versions are released!


Slow and safe:

revert using snap info packagename
this assumes an old stable release - probably not the case...
snap install (look it up seems the cli install has breakage and I won't keep chasing it here)

Quick and dangerously:

If the prior version is not available via snap info packagename -- most likely it won't be!
Grab a copy of the old .snap and .assert files
snap remove packagename
snap ack packagename_version.assert
snap install packagename_version.snap (--dangerous)
(dangerous needed if there is no assert file to ack)

Hint - grab from another installation with that version via:
snap download packagename
look in /var/lib/snapd/snaps/packagename_version.snap

This will break updates however



[æ]