Artix Linux Forum

Artix Linux => Package management => Topic started by: haqqbruzzer on 29 January 2022, 02:18:20

Title: Can't install important applications because of dependency
Post by: haqqbruzzer on 29 January 2022, 02:18:20
Greetings my brothers
I've came across an incredibly horrible problem that has stunted my ability to use this os, everytime i try to download monero or tor this error comes up
Code: [Select]
doas pacman -S torbrowser-launcher
Code: [Select]
warning: cannot resolve "libsystemd.so=0-64", a dependency of "tor"
warning: cannot resolve "tor", a dependency of "torbrowser-launcher"
:: The following package cannot be upgraded due to unresolvable dependencies:
      torbrowser-launcher

:: Do you want to skip the above package for this upgrade? [y/N]
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'libsystemd.so=0-64' required by tor
:: unable to satisfy dependency 'tor' required by torbrowser-launcher
this is a fresh install, is there anything i might've done to cause it and is it fixable without reinstalling?
Title: Re: Can't install important applications because of dependency
Post by: SGOrava on 29 January 2022, 03:48:50
I would start by installing "artix-archlinux-support"

Code: [Select]
pacman -S artix-archlinux-support
Title: Re: Can't install important applications because of dependency
Post by: haqqbruzzer on 29 January 2022, 04:16:18
I would start by installing "artix-archlinux-support"

Code: [Select]
pacman -S artix-archlinux-support
i've already had it but i reinstalled it and still no difference brother
Title: Re: Can't install important applications because of dependency
Post by: tintin on 29 January 2022, 04:27:00
Hello,
i've already had it but i reinstalled it and still no difference brother
What says:
Code: [Select]
cat /etc/pacman.conf
Title: Re: Can't install important applications because of dependency
Post by: haqqbruzzer on 29 January 2022, 04:31:44
Hello,What says:
Code: [Select]
cat /etc/pacman.conf
Code: [Select]
#[gremlins]
#Include = /etc/pacman.d/mirrorlist

[system]
Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist-arch

[multilib]
Include = /etc/pacman.d/mirrorlist-arch

[extra]
Include = /etc/pacman.d/mirrorlist-arch

[galaxy]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

[lib32]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
Title: Re: Can't install important applications because of dependency
Post by: ndowens on 29 January 2022, 04:41:55
We don't have systemd. You will need to edit the PKGBUILD and remove the sysd dep
Title: Re: Can't install important applications because of dependency
Post by: haqqbruzzer on 29 January 2022, 04:59:55
We don't have systemd. You will need to edit the PKGBUILD and remove the sysd dep
how is that done
Title: Re: Can't install important applications because of dependency
Post by: tintin on 29 January 2022, 06:00:33
Code: [Select]
#[gremlins]
#Include = /etc/pacman.d/mirrorlist

[system]
Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist-arch

[multilib]
Include = /etc/pacman.d/mirrorlist-arch

[extra]
Include = /etc/pacman.d/mirrorlist-arch

[galaxy]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

[lib32]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs


As of June 2021, all Arch repositories are disabled by default. To enable them, install artix-archlinux-support and follow the on-screen instructions to activate the Arch repositories you want, most likely extra, community and multilib, which contain packages not yet in Artix repositories. Again, most important is to order the Arch repositories after the Artix repositories, so Artix repositories take precedence over Arch repositories. Do not enable community alone as it contains packages dependent on others in extra.

Your enabled repos in /etc/pacman.conf can, for example, look like this:
 
Code: [Select]
# Artix
 [system]
 Include = /etc/pacman.d/mirrorlist

 [world]
 Include = /etc/pacman.d/mirrorlist

 [galaxy]
 Include = /etc/pacman.d/mirrorlist

 [lib32]
 Include = /etc/pacman.d/mirrorlist

 # Arch
 [extra]
 Include = /etc/pacman.d/mirrorlist-arch

 [community]
 Include = /etc/pacman.d/mirrorlist-arch

 [multilib]
 Include = /etc/pacman.d/mirrorlist-arch

https://wiki.artixlinux.org/Main/Repositories



Title: Re: Can't install important applications because of dependency
Post by: Dudemanguy on 29 January 2022, 16:53:15
Actually the elogind PKGBUILD (https://gitea.artixlinux.org/packagesE/elogind/src/branch/master/trunk/PKGBUILD#L69) shows that it symlinks libelogind to libsystemd so just install elogind and you shouldn't be having this issue (indeed, I can just install this particular application).
Title: Re: Can't install important applications because of dependency
Post by: zerogara on 29 January 2022, 23:18:57
a dirty trick is to install it

Code: [Select]
pacman -Sdd torbrowser-launcher

the functionality it would need from systemd it will automatically find through elogind-libelogind, but the rest of its dependencies you have to install separately, if you are missing them, see pacman -Si tor-browser-launcher for them.  Most likely python-{gpgme,pysocks}



Just don't make a habit of doing so and the problem after the installation will be the annoying message every time pacman -Su runs that a dependency is missing.

Tor-br-launcher is not that essential to have, you can just get tor-browser, and then it updates itself, so you can add it in the ignore list of your pacman.conf.