Adding a "fix" command to repair a broken snap?

It does not appear often, but when that happen, it is really frustrating.

Broken packages…

What about adding a command to auto-repair a broken snap?

snap repair <snap-package>

Could also be used as

snap repair --all

Furthermore, we already have automatic upgrade, why not automatic repair (ex: on startup)?

Would you mind providing such example? It shouldn’t definitely happen since snapd would do a rollback in case of issues during upgrade.

1 Like