Had to do that yesterday.
Have a Nextcloud instance running and wanted to upgrade from Ubuntu 20.04 to 22.04.
Couldn’t do it because Ubuntu would not connect to the snap-store because the service wouldn’t start.
A purge later and now I’m running Jammy Jellyfish.
May I interject …
It’s bro-nounced LiGnux!