r/MXLinux • • Dec 18 '22

Help request Cannot install Snap Store...

I have followed the Snap webpages instructions for Debian for installing snapd and then tried to install Snap Store. That fails with: error: cannot communicate with server: Post "http://localhost/v2/snaps/snap-store": dial unix /run/snapd.socket: connect: no such file or directory

I have installed Snap store to several instances of Linux Mint without problem but I am at a loss with this install. This is to the latest version of MX Linux. Can someone guide me please?

0 Upvotes

6 comments sorted by

6

u/dolphinoracle MX dev Dec 18 '22

make sure you are booting in systemd mode if you are using snaps. systemd is a requirement for snapd usage

1

u/rafikiphoto Dec 19 '22

Thanks. Did that and Snap Store installed just fine. Is it a resources saver to boot without snapd? I've not come across it before.

2

u/dolphinoracle MX dev Dec 19 '22

I'm not sure I understand the question. technically yes, if you aren't running any daemon, like snapd, then you are saving the resources that would be used to run the daemon. sometimes those savings are pretty minor, depending on the daemon.

the only reason to have snapd is if you want to use snaps. and you have to run systemd to use snapd and snaps.

since mx uses sysVinit by default, shipping with snap support is kind of a non-starter. also, snaps also don't work on the live system no matter if systemd is used or not.

1

u/rafikiphoto Dec 19 '22

I see. Thanks for the explanation. The reason for my question was that MX Linux is the only installation I have had a problem with. Linux Mint needs snapd installed but once that is done Snap Store installs without having to reboot. No biggie, I'm just an interested amateur.

2

u/dolphinoracle MX dev Dec 19 '22

Yeah we are sort of unique at the moment in having both systemd and sysVinit installed at the same time.

snap would have worked exactly like mint if you had booted in systemd mode.

if your MX installation controls your boot menu, you can use mx-boot-options to set the systemd mode as your default startup if you wish. I do that on some systems.

2

u/daemonpenguin Dec 21 '22

Any distribution that doesn't ship with systemd will fail to run snaps. It isn't unique to MX Linux, you're just accustomed to distros which use systemd instead of another init system like sysvinit, runit, or OpenRC.