How to patch a broken snap locally? (changing base)

Thank you for your quick response!

I’m able to repack spotify and it also launches normally. The bug is also gone.

Here are the steps that I took, for other people who might want the same thing:

  1. snap download spotify
  2. unsquashfs spotify_*.snap
  3. cd squashfs-root/
  4. Edit meta/snap.yaml to change base: core18 to base: core20
  5. cd ..
  6. snap pack ./squashfs-root
  7. snap install --dangerous spotify_1.1.84.716.gc5f8b819_amd64.snap (no need to remove existing spotify snap, the new one will install alright and inherits user data from the existing snap.)

References:

3 Likes