Snap doesn't work at all after I followed some instructions

Can you run snap list?

Here it is:

$ snap list
Name Version Rev Tracking Publisher Notes
atom 1.48.0 257 latest/stable snapcrafters classic
core 9436 latest/stable canonicalāœ“ broken
core18 1754 latest/stable canonicalāœ“ broken
gnome-3-28-1804 3.28.0-17-gde3d74c.de3d74c 128 latest/stable canonicalāœ“ -
gnome-3-34-1804 36 latest/stable/ā€¦ canonicalāœ“ broken
gtk-common-themes 1506 latest/stable/ā€¦ canonicalāœ“ broken
hello-world 6.4 29 latest/stable canonicalāœ“ -
pycharm-community 2020.1.3 202 latest/stable jetbrainsāœ“ classic
qbittorrent-arnatious 40 latest/stable arnatious broken
snap-store 3.31.1+git187.84b64e0b 415 latest/stable canonicalāœ“ -
snapd 8140 latest/stable canonicalāœ“ broken

Hmm, it seems like many of your snaps are broken. Can you run the atom snap successfully ?

Both Core and Core18 are in a broken state, as is Snapd. This is not very healthy. As a quick check, did you reboot after you restored the /var directory from the backup you created? If not then do so now.

Yes, I did reboot the system.

No, I canā€™t run atom.

Hmm at this point Iā€™m really not sure what more to check on, you could try disabling all of the snaps in turn like this:

snap disable atom
snap disable snap-store
snap disable qbittorrent-arnatious
snap disable pycharm-community
snap disable hello-world
snap disable gtk-common-themes
snap disable gnome-3-34-1804
snap disable gnome-3-28-1804
snap disable core18
snap disable core

and then re-enabling them in the reverse order