Installing snap on Fedora

Hello I was able to solve the problem By following these steps (1,2,3) First: writing the following command $systemctl status snapd.service output well be like { $ systemctl status snapd.service ● snapd.service - Snap Daemon Loaded: loaded (/usr/lib/systemd/system/snapd.service; disabled; vendor preset: disabled) Active: inactive (dead) TriggeredBy: ● snapd.socket } Now we write the following command $systemctl start snapd.service it ask you for root password And for sure $systemctl status snapd.service output well be like {" $ systemctl status snapd.service ● snapd.service - Snap Daemon Loaded: loaded (/usr/lib/systemd/system/snapd.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2020-06-10 13:34:31 EEST; 18min ago TriggeredBy: ● snapd.socket Main PID: 3462 (snapd) Tasks: 11 (limit: 6923) Memory: 45.0M CPU: 917ms CGroup: /system.slice/snapd.service └─3462 /usr/libexec/snapd/snapd

    Jun 10 13:34:30 dhcppc7 systemd[1]: Starting Snap Daemon...
    Jun 10 13:34:30 dhcppc7 snapd[3462]: AppArmor status: apparmor not enabled
    Jun 10 13:34:31 dhcppc7 snapd[3462]: daemon.go:343: started snapd/2.45-1.fc32 (series 16; classic; devmode) f>
    Jun 10 13:34:31 dhcppc7 snapd[3462]: daemon.go:436: adjusting startup timeout by 50s (pessimistic estimate of>
    Jun 10 13:34:31 dhcppc7 systemd[1]: Started Snap Daemon.
    Jun 10 13:34:42 dhcppc7 snapd[3462]: storehelpers.go:438: cannot refresh: snap has no updates available: "cor>
    Jun 10 13:34:42 dhcppc7 snapd[3462]: autorefresh.go:397: auto-refresh: all snaps are up-to-date

    [loaialnshar@localhost ~]$ 

"} Now everything is ready for action Untitled Note:You need to do this every time after turning on the computer And I work on Fedora 32 KDE :smile::grin:

1 Like

I followed this in a LXD container only to find that snaps built using the currently recommended compression (compression: lzo) fail to install.

The failure isn’t very informative:

$ sudo snap install ubuntu-frame-vnc 
error: cannot perform the following tasks:
- Mount snap "mesa-core20" (125) (systemctl command [start var-lib-snapd-snap-mesa\x2dcore20-125.mount] failed with exit status 1: Job failed. See "journalctl -xe" for details.

A bit of digging into journalctl -xe found the following:

May 23 15:24:25 fedora-38 mount[355]: Squashfs image uses lzo compression, this version supports only xz,
 zlib, lz4, zstd.
May 23 15:24:25 fedora-38 systemd[1]: var-lib-snapd-snap-mesa\x2dcore22-147.mount
: Mount process exited, code=exited, status=255/EXCEPTION

I’m not sure how many popular snaps use LZO, but this could well be a limitation worth noting.

After this: [quote=“degville, post:1, topic:6755”]

sudo ln -s /var/lib/snapd/snap /snap

[/quote]

You should run

systemctl enable snapd

No amount of restarts will make it work if snapd does not start on startup. Alternatively, you could start it manually:

systemctl start snapd

Using Rocky Linux 8.6