You are not logged in.

#1 2021-06-05 06:39:02

sb8623
Member
Registered: 2018-09-11
Posts: 18

[SOLVED]Cannot install lib32-libelf back

I was getting the message

installing libelf (0.185-1) breaks dependency 'libelf=0.184' required by lib32-libelf

during updating my system. So I pacman -Rdd ed lib32-libelf planning to install libelf and then install lib32-libelf back. But after installing (updating) libelf, I can't install lib32-libelf back as pacman -Ss lib32-libelf shows that the latest version is 0.184 but this shows that the latest version s 0.185 (I updated my mrrorlist too).

This is what I get while trying to install lib32-libelf :

sudo pacman -S lib32-libelf
resolving dependencies...
warning: cannot resolve "libelf=0.184", 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] y
looking for conflicting packages...
 there is nothing to do

I think I messed up as some packages like lib32-mesa and lib32-vulkan-radeon require lib32-libelf. How do I get out of this?
Also, I just found out that I should have just probably added LC_ALL=C during the update sad

Last edited by sb8623 (2021-06-05 16:13:18)

Offline

#2 2021-06-05 12:26:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,831

Re: [SOLVED]Cannot install lib32-libelf back

lib32-libelf was updated to 0.185 like libelf. Your mirrors aren't as up to date as you think them to be, double check that, pick one with a low score and low delay time: https://archlinux.org/mirrors/status/#successful

Offline

#3 2021-06-05 13:58:46

sb8623
Member
Registered: 2018-09-11
Posts: 18

Re: [SOLVED]Cannot install lib32-libelf back

I generated the mirrorlist from here and pasted it into /etc/pacman.d/mirrorlist. Isn't that supposed to be the latest mirrors?

Last edited by sb8623 (2021-06-05 14:18:28)

Offline

#4 2021-06-05 15:24:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,831

Re: [SOLVED]Cannot install lib32-libelf back

Unless you ticked the use mirror status box that will be a plain mirror list according to what you defined without taking into account how up to date or synchronized any given mirror is. If you limited that to a particular country you might even be in the unfortunate position to simply only be able to choose outdated mirrors.

Offline

#5 2021-06-05 16:12:52

sb8623
Member
Registered: 2018-09-11
Posts: 18

Re: [SOLVED]Cannot install lib32-libelf back

Dumb me didn't check Use mirror status. hmm
Thanks!

Offline

#6 2021-06-06 12:01:49

ilf0
Member
Registered: 2012-05-12
Posts: 9

Re: [SOLVED]Cannot install lib32-libelf back

I also get this error:

error: failed to prepare transaction (could not satisfy dependencies)
:: installing alsa-lib (1.2.5-2) breaks dependency 'alsa-lib=1.2.4' required by lib32-alsa-lib
:: installing libelf (0.185-1) breaks dependency 'libelf=0.184' required by lib32-libelf

I generated a fresh mirrorlist with use_mirror_status=on from https://archlinux.org/mirrorlist/?count … _status=on.

I even tried the first half, the second half or only single mirrors. All the same.

What am I doing wrong?

Offline

#7 2021-06-06 12:41:57

sb8623
Member
Registered: 2018-09-11
Posts: 18

Re: [SOLVED]Cannot install lib32-libelf back

What I did was pacman -Rdd to the packages which require the old dependencies and then install the dependencies. After that install the packages back.
For example in your case what I would do is

pacman -Rdd lib32-alsa-lib
pacman -S alsa-lib
pacman -S lib32-alsa-lib

Also, don't select a particular country while generating the mirrorlist, you may get all outdated mirrors.

Offline

#8 2021-06-06 12:58:23

ilf0
Member
Registered: 2012-05-12
Posts: 9

Re: [SOLVED]Cannot install lib32-libelf back

Thanks.

1. I tried the mirrorlist without limiting to a country: https://archlinux.org/mirrorlist/?proto … _status=on - Makes no difference, the error is still there.

2. I don't want to remove and re-install the packages. Especially since it might change their status from "installed as dependency" to "explicitly installed by user choice". Also, I fail to see how that changes the mirror status.

Offline

#9 2021-06-06 13:02:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,613

Re: [SOLVED]Cannot install lib32-libelf back

At this point, you either have a really bad mirror, or you've installed things from multilib then disabled the repo.

Online

#10 2021-06-06 13:27:32

ilf0
Member
Registered: 2012-05-12
Posts: 9

Re: [SOLVED]Cannot install lib32-libelf back

Scimmia: Ah yes, the lib32- packages were from multilib and that was disabled with a new pacman.conf on May 20. Re-enabling multilib solved it. Thank you!

Offline

#11 2021-06-06 13:36:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,613

Re: [SOLVED]Cannot install lib32-libelf back

Which is why .pacnew files are to be merged, not just copied over.

Online

#12 2021-06-06 13:36:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,907
Website

Re: [SOLVED]Cannot install lib32-libelf back

In that case you're handling pacnew files wrong. If you were meant to blindly replace your config files with their pacnew equivalents, there would no point in them being installed as pacnew files in the first place.

https://wiki.archlinux.org/title/Pacman … nd_Pacsave


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB