Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] can't use wayland compositors because dont have libsystemd.so.0 (Read 493 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] can't use wayland compositors because dont have libsystemd.so.0

If I try to run sway or hyprland, I get the error:

sway: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory

I am a bit confused because it seems like systemd is required, but they are on the artix repo...

I tried running elogind but that made no difference.

I am connected to the arch repo as well, is it possible I downloaded the wrong version? Usually it seems to give me an option to choose which source if the file is in mutiple repos but it did not give me that option in this case...

Appreciate any insight! Thanks!

Edit: I'm using runit.

Re: can't use wayland compositors because dont have libsystemd.so.0

Reply #1
Have a look at pacman -Qi for each of those packages and I expect you'll see *@archlinux in the 'Packager' field.

If you do you can reinstall but put world/  in front of the package name
Code: [Select]
pacman -Syu  world/sway world/hyperland
If you get an an error about signatures & corrupt you can choose yes, delete and it should work the second time.
Or just go and delete the packages and .sig's from /var/cache/pacman/pkg before you start.


Re: can't use wayland compositors because dont have libsystemd.so.0

Reply #2
Packager        : Artix Build Bot <[email protected]>

Damn.

Edit: I had an idea. I actually tried to install river from the arch repo before I installed these ones.  I assume the dependencies are mostly the same, maybe I have the wrong version of one of the depencies? Not sure how I figure out if that was true and fix it though.

Re: can't use wayland compositors because dont have libsystemd.so.0

Reply #3
Have a look at the packages sway depends on and do the same Pacman -QI for all of them or the package that provides the listed library.

I just downloaded the Artix sway package and it doesn't link to libsystemd.
Spoiler (click to show/hide)
based on that try wlroots first

Re: can't use wayland compositors because dont have libsystemd.so.0

Reply #4
I had to uninstall literally every wayland related program I had to get it working. Reinstalled after uninstalling (and removing orphans) and now it's working. It said something about seatd being corrupted, maybe that was the program I accidentally got from the arch repo?

Anyways, thanks a bunch for the input, really helped a lot. :)  :)