Hello, I have problems regarding my videogames and wanted to try and pacman -Syu, but got following message.
"
resolving dependencies...
warning: cannot resolve "libelf=0.189", a dependency of "lib32-libelf"
:: The following package cannot be upgraded due to unresolvable dependencies:
lib32-libelf
:: Do you want to skip the above package for this upgrade? [y/N]
"
What shall I do? how do I fix this? is this package importatn, afaik somethign with video drivers??
Also perhaps somebody knows a few tipps but this post isnt about that.
I play Garrys mod on Artix linux, with a 3080, I911th gen, 21 gigs of ram, and steam with Protn 9.0-6 (Steam usually comes with proton installed) And here are the problems I generally have please help me fix them.
1. Gmod - has only sound after fresh PC restart when I first start garrys mod, when closing and starting again without PC restart there is no sound.
1.1 Gmod crashes when joining most servers - While loading it just closes.
-
All gmod problems persist even after reinstalling, (the joining part also isnt fixed even after a pc restart unlike with the sound problem) I tried also to change betas which didnt work, and to delete all addons which didnt work.
-
2. I wanted to try to update my PC system with "pacman -Syu" but after its synchronizing the package databses and plans on updating it gives me the following message and i dont know what to do.
Both libelf and lib32-libelf are at 0.188 in our repos, 0.189 is in Arch's [multilib-testing].
So I disabled multilib testing AND multilib, cleared the pacman cache, and it still doesnt fix the problem.
I also wanted to install obs, but this gives me problems with the libavcodec package, so i wanted to install the new version of ffmpeg but that gives me following error
erorr: failed to prepare transaction (coudl not satisfy dependencies)
:: installing ffmpeg (2:6.0-3) breaks dependency 'libacodec.so=59-64' required by chromaprint
Ans many other similar lines, reqauired by mpv some other things etc.
I suppose I can fix this by generally updating my system but there we are at my first problem again.
even Chat opnai couldnt help me, and said to continue asking here. (is it embarrasing to use chatgpt for linux help? kinda right?)
Most of these errors are due to slow mirror syncs or slight delays of package builds. Patience is the key here.
I used it a couple of times myself to generate openrc scripts, but I'd never use it to give me sociopolitical advice.
so i should just wait until i can pacman -syu?
Correct, unless it takes more than a couple of days, in which case you poke us.
So its been 6 days since i started the thread, and 3 days since your answer and I still have the problem. What can I do?
Could you post the full output of
sudo pacman -Syu
And also
pacman -Qi lib32-libelf
It seems odd that in your first post
Yet my lib32-libelf seems up to date and only depends on 0.188 ?
@gripped here is the pic of the output.
multi-lib testing, any reason that's enabled? libeldf is on 188 in mutlilb, testing is on 189. On the face of it, reckon thats the root of the issue, enabling a testing repo.
doas pacman -S lib32/lib32-libelf
doas pacman -Syu
Comment out the testing repo(s)
Unless you really know what you are doing if you want one testing repo enabled you really need to enable all the Artix ones.
I just reanabled them, same problem if its not enabled
@gripped as far as i remember i had one package fcrom the testing but i commented it out anyways now, here the output.
Do me a favour and copy and paste in code tags. It's far easier to read than a screen shot
Delete or move all lib32-libelf* files in /var/cache/pacman/pkg
Then try again.
[sosse@sossart ~]$ doas pacman -S lib32/lib32-libelf
doas (sosse@sossart) password:
warning: lib32-libelf-0.188-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) lib32-libelf-0.188-1
Total Installed Size: 2.43 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [----------------------------------------------------------------------] 100%
(1/1) checking package integrity [----------------------------------------------------------------------] 100%
(1/1) loading package files [----------------------------------------------------------------------] 100%
(1/1) checking for file conflicts [----------------------------------------------------------------------] 100%
(1/1) checking available disk space [----------------------------------------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling lib32-libelf [----------------------------------------------------------------------] 100%
[sosse@sossart ~]$ doas pacman -Syu
doas (sosse@sossart) password:
:: Synchronizing package databases...
system is up to date
world is up to date
galaxy is up to date
lib32-gremlins is up to date
lib32 is up to date
universe is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
warning: cannot resolve "libelf=0.189", a dependency of "lib32-libelf"
warning: cannot resolve "libelf=0.189", a dependency of "lib32-libelf"
:: The following package cannot be upgraded due to unresolvable dependencies:
lib32-libelf
:: Do you want to skip the above package for this upgrade? [y/N] n
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'libelf=0.189' required by lib32-libelf
:: unable to satisfy dependency 'libelf=0.189' required by lib32-libelf
[sosse@sossart ~]$
just found out how to copy :) alt+c
And after I removed it from the directory
[sosse@sossart /var/cache/pacman/pkg]$ ls
alsa-plugins-1:1.2.7.1-2-x86_64.pkg.tar.zst libc++-15.0.7-3-x86_64.pkg.tar.zst.sig pipewire-alsa-1:0.3.67-1-x86_64.pkg.tar.zst
alsa-plugins-1:1.2.7.1-2-x86_64.pkg.tar.zst.sig libc++abi-15.0.7-3-x86_64.pkg.tar.zst pipewire-alsa-1:0.3.67-1-x86_64.pkg.tar.zst.sig
lib32-libelf-0.188-1-x86_64.pkg.tar.zst libc++abi-15.0.7-3-x86_64.pkg.tar.zst.sig teamspeak3-3.5.6-3-x86_64.pkg.tar.zst
lib32-libelf-0.188-1-x86_64.pkg.tar.zst.sig libgdiplus-5.6.1-4-x86_64.pkg.tar.zst teamspeak3-3.5.6-3-x86_64.pkg.tar.zst.sig
libc++-15.0.7-3-x86_64.pkg.tar.zst libgdiplus-5.6.1-4-x86_64.pkg.tar.zst.sig
[sosse@sossart /var/cache/pacman/pkg]$ doas rm lib32*
doas (sosse@sossart) password:
[sosse@sossart /var/cache/pacman/pkg]$ ls
alsa-plugins-1:1.2.7.1-2-x86_64.pkg.tar.zst libc++abi-15.0.7-3-x86_64.pkg.tar.zst pipewire-alsa-1:0.3.67-1-x86_64.pkg.tar.zst
alsa-plugins-1:1.2.7.1-2-x86_64.pkg.tar.zst.sig libc++abi-15.0.7-3-x86_64.pkg.tar.zst.sig pipewire-alsa-1:0.3.67-1-x86_64.pkg.tar.zst.sig
libc++-15.0.7-3-x86_64.pkg.tar.zst libgdiplus-5.6.1-4-x86_64.pkg.tar.zst teamspeak3-3.5.6-3-x86_64.pkg.tar.zst
libc++-15.0.7-3-x86_64.pkg.tar.zst.sig libgdiplus-5.6.1-4-x86_64.pkg.tar.zst.sig teamspeak3-3.5.6-3-x86_64.pkg.tar.zst.sig
[sosse@sossart /var/cache/pacman/pkg]$ doas pacman -S lib32/lib32-libelf
doas (sosse@sossart) password:
warning: lib32-libelf-0.188-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) lib32-libelf-0.188-1
Total Download Size: 0.55 MiB
Total Installed Size: 2.43 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
lib32-libelf-0.188-1-x86_64 561.0 KiB 91.0 KiB/s 00:06 [--------------------------------------------------------] 100%
(1/1) checking keys in keyring [--------------------------------------------------------] 100%
(1/1) checking package integrity [--------------------------------------------------------] 100%
(1/1) loading package files [--------------------------------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------------------------------] 100%
(1/1) checking available disk space [--------------------------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling lib32-libelf [--------------------------------------------------------] 100%
[sosse@sossart /var/cache/pacman/pkg]$ doas pacman -Syu
doas (sosse@sossart) password:
:: Synchronizing package databases...
system is up to date
world is up to date
galaxy is up to date
lib32-gremlins is up to date
lib32 is up to date
universe is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
warning: cannot resolve "libelf=0.189", a dependency of "lib32-libelf"
warning: cannot resolve "libelf=0.189", a dependency of "lib32-libelf"
:: The following package cannot be upgraded due to unresolvable dependencies:
lib32-libelf
:: Do you want to skip the above package for this upgrade? [y/N] n
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'libelf=0.189' required by lib32-libelf
:: unable to satisfy dependency 'libelf=0.189' required by lib32-libelf
[sosse@sossart /var/cache/pacman/pkg]$
Close :)
That's a spoiler tag
Second from the left bottom row '#' is a code tag.
No need to post it again.
I'm guessing but it seems your database is messed up ?
lib32-libelf-0.188-1 should not be requiring libelf=0.189 ? At least not on my system.
Curious what this output would be ?
grep -H libelf= /var/lib/pacman/local/lib32-libelf*/desc
[sosse@sossart ~]$ grep -H libelf= /var/lib/pacman/local/lib32-libelf*/desc
/var/lib/pacman/local/lib32-libelf-0.188-1/desc:libelf=0.188
[sosse@sossart ~]$
Sometimes I can't see the wood for the trees! But then you did choose hard to read methods to post ;)
disable (comment out) lib32-gremlins in /etc/pacman.conf
*-gremlins is the Artix form of testing
https://wiki.artixlinux.org/Main/Repositories#Testing
Never enable *-testing or *-gremlins unless you absolutely know what you are doing and how to fix breakage. Hint: You don't yet.
If you really wanted to you'd need them all enabled or things will break guaranteed.
Works. omg. Thank yo so much! But why will it break?
Did you read the link ?
Glad you sorted it :) Annoyed I missed it for so long :(
I'm running into the same issue, but I don't have multi-lib or gremlins enabled. Here's some outputs requested by
@gripped:
sudo pacman -Syyu
:: Synchronizing package databases...
system 265.4 KiB 238 KiB/s 00:01 [####################################] 100%
world 2.0 MiB 2.92 MiB/s 00:01 [####################################] 100%
galaxy 2.7 MiB 6.94 MiB/s 00:00 [####################################] 100%
universe 206.7 KiB 437 KiB/s 00:00 [####################################] 100%
omniverse 205.6 KiB 200 KiB/s 00:01 [####################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing libelf (0.189-1) breaks dependency 'libelf=0.188' required by lib32-libelf
pacman -Qi lib32-libelf
Name : lib32-libelf
Version : 0.188-1
Description : Handle ELF object files and DWARF debugging information (libraries) (32-bit)
Architecture : x86_64
URL : https://sourceware.org/elfutils/
Licenses : LGPL3 GPL3
Groups : None
Provides : None
Depends On : lib32-bzip2 lib32-curl lib32-gcc-libs lib32-xz lib32-zlib lib32-zstd libelf=0.188
Optional Deps : None
Required By : lib32-mesa-vdpau lib32-vulkan-radeon
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 2.43 MiB
Packager : Artix Build Bot <[email protected]>
Build Date : Wed 30 Nov 2022 04:47:01 PM MST
Install Date : Tue 14 Feb 2023 09:01:20 PM MST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
I tried to find lib32-libelf in pacman cache and couldn't find anything.
You should be on lib32-libelf 0.189-1 ?
It's been built since 03.03.
I'm not sure why pacman can't work this all out for itself ?
Try
sudo pacman -S lib32-libelf libelf
Post the full output.
My thoughts as well. What's weird is I don't have any exotic config here, and even waited for it to catch up.
~$ sudo pacman -S lib32-libelf libelf
error: target not found: lib32-libelf
Don't know what it is about this thread.
Can't see the wood for the trees again!
You are missing lib32 repo enabled in /etc/pacman.conf
There's another thread
https://forum.artixlinux.org/index.php/topic,5266.0.html
Where it seem that on a new install some lib32 packages were included in the iso but (I'm guessing) lib32 is not enabled automatically ?
Is this a new install ?
Are you aware that you need any lib32 packages ?
OK I think I got it to work. I am unaware of needing any lib32 packages. I checked -Qi and it said libelf32 was required by lib32-mesa-vdpau lib32-vulkan-radeon. I tried to uninstall this, pacman had me uninstall a bunch of lib32 packages. I am not a gamer and have a fresh backup so I said yolo and uninstalled them. just did a full update and everything looks fine. Thanks Gripped!
Not OP, but I'm experiencing this issue too. This is a brand new install I'm testing in a VM.
I'm not aware of any lib32 packages that I need. I've been installing relatively few packages and none of them had issues when they were installed. I also successfully ran pacman -Syu a few times before this.
It was not until today that I got this lib32 issue.
I can't say for sure what packages introduced this issue, but I can tell you the two packages I recently installed are:
gnome-themes-extra
gtk-engine-murrine
I hope that doesn't send anyone on a goose chase, but I've done almost nothing in this VM aside from poke around with themes.
The issue was lurking since you installed the iso.
Explanation from the man himself https://forum.artixlinux.org/index.php/topic,5266.msg33634.html#msg33634
You should be fine to uninstall any lib32 packages.
pacman won't let you uninstall them if they are actually needed.
If you need any further explanation or help just ask here.
Thanks! Makes sense to me. Good to know I can remove those if I want, but personally, I'd prefer to just enable the lib32 repo. Doing so seems to make pacman happy immediately.
If anyone wants to do that for themselves (such as everyone coming in from Google, like me!), here's a quick little oneliner for you:
sed -i '/\[lib32\]/,/^$/ s/^#//' /etc/pacman.conf
Welcome to the forum.
Someone with sed skills.
I can guarantee it would have taken me 100 times longer (or more) to come up with that line than it would to for me to edit out the two comments! I've used sed in the past for things but the knowledge just won't stick in my head. Every-time I'm studying cheat sheets and a lot of trial and error. Practice makes perfect I suppose.
And yeah no harm enabling lib32.