You are not logged in.

#1 2021-10-11 18:02:49

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Borked libc-2.x.so

Hi folks -

I have a running, stable, but borked glibc issue - it seems in /usr/lib I have two libc entries - libc-2.26.so and libc-2.28.so - currently libc.so.6 is pointing to 2.26 -  but when I run 'pacman' it says I'm missing 2.27.  Over a year ago I stopped using this system, and just recently putting it back into service forgetting I can't update it - I downloaded glibc-2.27.tar.xz but a bit lost on how to get it in place.

Any help appreciated.

Karyn

Offline

#2 2021-10-11 19:08:52

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Borked libc-2.x.so

Please post the pacman command you used and its full output.

Offline

#3 2021-10-11 19:12:57

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Re: Borked libc-2.x.so

[karyn@darkstar ~]$ sudo pacman -Syy
pacman: /usr/lib/libc.so.6: version `GLIBC_2.27' not found (required by pacman)

Offline

#4 2021-10-11 19:27:26

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Borked libc-2.x.so

I would suggest using the ALA with the date set to before the first manual intervention you need to perform on the Arch website front page.
From the installation media mount the system under /mnt as if you were going to chroot in then

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -Syu glibc

Last edited by loqs (2021-10-11 19:27:40)

Offline

#5 2021-10-11 19:37:15

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Re: Borked libc-2.x.so

Could you elaborate on the setting of the date?

Offline

#6 2021-10-11 19:41:08

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Re: Borked libc-2.x.so

FYI - I have the 2.27 version already download - using this method, could I install from the downloaded package of glibc?

Offline

#7 2021-10-11 19:44:22

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Borked libc-2.x.so

glibc-2.27.tar.xz I expect is the source for glibc from which the package is built.  The built package would have a name such as glibc-2.27-1-x86_64.pkg.tar.xz.

Offline

#8 2021-10-11 19:54:03

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Re: Borked libc-2.x.so

Gotcha - unfortunetly I only have 2.25 and 2.26 in /var/cache/pacman/pkg - but I do have four pacman there - perhaps if I downgrade pacman to match my 2.26 glibc?  Barring this how do build the 2.27 source? (I just need the libc-2.27.so in place long enough to run pacman at least once)

Offline

#9 2021-10-11 19:54:51

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

Re: Borked libc-2.x.so

If you have glibc 2.28 installed, the libc.so.6 symlink should be pointing to that already. Just switch the symlink and you may be able to update. Then you need to figure out where the old stuff came from.

Forget about 2.27.

Also note that 2.29 was out before pacman 5.2; that means your version of pacman is old enough that it won't run hooks correctly on update. You'll need to update, then reinstall all packages on the system with the new pacman.

Last edited by Scimmia (2021-10-11 20:04:45)

Offline

#10 2021-10-11 20:10:57

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Re: Borked libc-2.x.so

After linking libc.so.6 to libc-2.28.so it kernel panic on boot. (I'm not sure where the 2.28 came from)

Could you or someone build me a static pacman? smile

Offline

#11 2021-10-11 20:13:48

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

Re: Borked libc-2.x.so

So you actually have 2.26 installed, meaning this system hasn't been updated in 3.5+ years. I would just start over, to be honest.

There is a static version of pacman at https://aur.archlinux.org/packages/pacman-static/ though.

Last edited by Scimmia (2021-10-11 20:15:12)

Offline

#12 2021-10-11 20:23:03

karynroberts
Member
From: New Mexico USA
Registered: 2012-01-14
Posts: 9
Website

Re: Borked libc-2.x.so

It's a shame, but you're right - the only thing is there so much great stuff on this HD - all good though, I have tons of spares.  My laptop is my main ARCH install anyway so I'll mount up the old disk and take my time piece-milling stuff over.

Thanks for taking the time to peek into my nitemare wink

Offline

#13 2021-10-11 20:35:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Borked libc-2.x.so

You shouldn't lose (much) from a reinstall.  First, if you had a separate home partition, just don't touch the home partition during the reinstall.

If you didn't have a separate home partition, then it takes a bit more work, but essentially just never create a new filesystem, but clear out parts of the old one.  Mount your partition as-per normal in the install process, but instead of running a mkfs command, just delete everything *other* than the content of the home directory (e.g, if it's mounted on /mnt, `rm -rf /mnt/usr /mnt/etc` would get you most of the way there).  Then follow the rest of the installation process as usual.  You'd only then need to (re)create your user specifying a home directory of the already existing directory from your previous system.

In theory you could even do all this without deleting *anything* as a way to effectively recover / update the system.  Although that would leave around a lot of junk.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB