Snap broken in Fedora 31

Hello all,
I am not sure how, but it seems like all of my snap packages have stopped working in Fedora 31. Running the snap command gives me the error: error: cannot communicate with server: Post http://localhost/v2/apps: dial unix /run/snapd.socket: connect: no such file or directory.
The apps I had installed with snap no longer work, it looks like the icons have disappeared from the GNOME desktop and I cannot launch them anymore. I tried downgrading snapd using sudo dnf downgrade snap but that also gives me an error.

Using systemctl start snapd.service gives an error too: A dependency job for snapd.service failed. See 'journalctl -xe' for details.

I have no idea how this happened! Thank you for any help!

Edit: dnf reinstall snapd also gives an error :frowning:

I uninstalled snap, and now I am not even able to install it!

Last metadata expiration check: 1:42:54 ago on Wed 11 Dec 2019 04:00:29 PM EST.
Dependencies resolved.

Package Architecture Version Repository Size

snapd x86_64 2.42.2-1.fc31 updates 16 M
Installing dependencies:
snap-confine x86_64 2.42.2-1.fc31 updates 2.4 M
snapd-glib x86_64 1.54-1.fc31 updates 148 k
snapd-qt x86_64 1.54-1.fc31 updates 139 k
snapd-selinux noarch 2.42.2-1.fc31 updates 220 k
Installing weak dependencies:
plasma-discover-snap x86_64 5.16.5-1.fc31 fedora 84 k

Transaction Summary

Install 6 Packages

Total download size: 19 M
Installed size: 72 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): snapd-glib-1.54-1.fc31.x86_64.rpm 298 kB/s | 148 kB 00:00
(2/6): snapd-qt-1.54-1.fc31.x86_64.rpm 807 kB/s | 139 kB 00:00
(3/6): snapd-selinux-2.42.2-1.fc31.noarch.rpm 1.6 MB/s | 220 kB 00:00
(4/6): plasma-discover-snap-5.16.5-1.fc31.x86_64.rpm 719 kB/s | 84 kB 00:00
(5/6): snap-confine-2.42.2-1.fc31.x86_64.rpm 1.6 MB/s | 2.4 MB 00:01
(6/6): snapd-2.42.2-1.fc31.x86_64.rpm 443 kB/s | 16 MB 00:36

Total 523 kB/s | 19 MB 00:36
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: snapd-selinux-2.42.2-1.fc31.noarch 1/6
Installing : snapd-selinux-2.42.2-1.fc31.noarch 1/6
Running scriptlet: snapd-selinux-2.42.2-1.fc31.noarch 1/6
Conflicting name type transition rules
Binary policy creation failed at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1748
Failed to generate binary
/usr/sbin/semodule: Failed!

Installing : snapd-glib-1.54-1.fc31.x86_64 2/6
Installing : snapd-qt-1.54-1.fc31.x86_64 3/6
Installing : snap-confine-2.42.2-1.fc31.x86_64 4/6
error: lsetfilecon: (/usr/libexec/snapd/snap-confine;5df17134, system_u:object_r:snappy_confine_exec_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package snap-confine-2.42.2-1.fc31.x86_64
Installing : snapd-2.42.2-1.fc31.x86_64 5/6
error: unpacking of archive failed on file /usr/libexec/snapd/snap-confine;5df17134: cpio: (error 0x2)
error: snap-confine-2.42.2-1.fc31.x86_64: install failed
error: lsetfilecon: (/etc/sysconfig/snapd;5df17134, system_u:object_r:snappy_config_t:s0) Invalid argument
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package snapd-2.42.2-1.fc31.x86_64
Installing : plasma-discover-snap-5.16.5-1.fc31.x86_64 6/6
error: unpacking of archive failed on file /etc/sysconfig/snapd;5df17134: cpio: (error 0x2)
error: snapd-2.42.2-1.fc31.x86_64: install failed

Running scriptlet: snapd-selinux-2.42.2-1.fc31.noarch 6/6
Running scriptlet: plasma-discover-snap-5.16.5-1.fc31.x86_64 6/6
Verifying : snap-confine-2.42.2-1.fc31.x86_64 1/6
Verifying : snapd-2.42.2-1.fc31.x86_64 2/6
Verifying : snapd-glib-1.54-1.fc31.x86_64 3/6
Verifying : snapd-qt-1.54-1.fc31.x86_64 4/6
Verifying : snapd-selinux-2.42.2-1.fc31.noarch 5/6
Verifying : plasma-discover-snap-5.16.5-1.fc31.x86_64 6/6

plasma-discover-snap-5.16.5-1.fc31.x86_64 snapd-glib-1.54-1.fc31.x86_64 snapd-qt-1.54-1.fc31.x86_64 snapd-selinux-2.42.2-1.fc31.noarch

snap-confine-2.42.2-1.fc31.x86_64 snapd-2.42.2-1.fc31.x86_64

Error: Transaction failed

I never seem to have a good experience with snap. Always stuck with flatpak instead. I suppose you’re not using it because you need snap?

I actually have both installed, since there are apps on both snap and flatpak that are not on the other. I do prefer flatpak, but I have never had issues with snap before.