Hello,
I am unable to install snapd in Fedora 31.
I am able to install other packages; however, gnome-software only works halfway: I can load some items from the store but the updates page loads forever unless I run gnome-software as root.
sudo dnf install snapd fails to install the package:
Last metadata expiration check: 0:38:56 ago on Sun 12 Jan 2020 09:25:58 PM EST.
Dependencies resolved.
===================================================================================================================
Package Architecture Version Repository Size
===================================================================================================================
Installing:
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
Transaction Summary
===================================================================================================================
Install 2 Packages
Total download size: 18 M
Installed size: 70 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): snap-confine-2.42.2-1.fc31.x86_64.rpm 2.4 MB/s | 2.4 MB 00:01
(2/2): snapd-2.42.2-1.fc31.x86_64.rpm 7.4 MB/s | 16 MB 00:02
-------------------------------------------------------------------------------------------------------------------
Total 6.4 MB/s | 18 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : snap-confine-2.42.2-1.fc31.x86_64 1/2
error: lsetfilecon: (/usr/libexec/snapd/snap-confine;5e1bde62, 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 2/2
error: unpacking of archive failed on file /usr/libexec/snapd/snap-confine;5e1bde62: cpio: (error 0x2)
error: snap-confine-2.42.2-1.fc31.x86_64: install failed
error: lsetfilecon: (/etc/sysconfig/snapd;5e1bde62, 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
Verifying : snap-confine-2.42.2-1.fc31.x86_64 1/2
Verifying : snapd-2.42.2-1.fc31.x86_64 2/2
Failed:
snap-confine-2.42.2-1.fc31.x86_64 snapd-2.42.2-1.fc31.x86_64
Error: Transaction failed
I have tried reinstalling/downgrading gnome-software and fwupd, as well as tpm2-abrmd to no avail. I don’t know what to do anymore, any help is much appreciated!