You are not logged in.

#1 2022-03-07 18:10:08

prayner96
Member
Registered: 2022-03-06
Posts: 68

[SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Hardware: Lenovo ideapad slim 7i pro.

Hi folks,

I recently started using my laptop again and found out that I need to update my system, so I tried to update using `pacman -Syy`.

However, I received this error:

sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by sudo)
sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by /usr/lib/sudo/libsudo_util.so.0)

The problem is that almost anything I do gets the same error message besides a few things like

ping google.com

Some Manjaro users seem to have found a solution., but I can't get past the same error message. The main difference between my problem and the one shared in the Manjaro forum is that I also get the error message

sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by sudo)

I tried manually downloading glibc (using the code below) but the output is the same.

sudo pacman -U glibc-2.35-2-x86_64.pkg.tar.zst
sudo pacman -U lib32-glibc-2.35-2-x86_64.pkg.tar.zst

Any help is appreciated!

Last edited by prayner96 (2022-04-21 21:28:23)

Offline

#2 2022-03-07 18:14:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,169

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

-Syy was a mistake for multiple reasons. First, the double y means to redownload the databases, even if they were already up to date. Second, it updates the databases without updating the system, which can lead to partial updates. It, by itself, would not cause this error, though. What else did you do? We need to know just what you broke to know how to proceed.

Offline

#3 2022-03-07 18:38:08

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Ran through my bash command history. It doesn't show what exact command I put in, but I recall using code from this article, so it may have been

pacman -Syyu

.

I tried to install picom and git clone the sendmail package. Both failed to install. That's when I realized gnu wasn't up to date.

Side note:
After running through the history of the Manjaro forum's OP, it seems we both have an issue where we tried to dual boot Linux from a usb on a Windows computer but ended up being stuck in Linux.

Offline

#4 2022-03-07 19:04:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,169

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Having the -u on there makes a huge difference. If that's the case, I wonder if you have glibc in IgnorePkg for some reason? If that's the case, a whole lot of things, including pacman will be totally broken. You'll have to boot an install disk and use pacman from there with the --root option.

Offline

#5 2022-03-07 19:27:50

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Please post the output of pacman-config.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2022-03-07 19:30:36

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

sudo pacman-config

produces:

sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by sudo)
sudo: /usr/lib/libc.so.6: version GLIBC_2.34 not found (required by /usr/lib/sudo/libsudo_util.so.0)

Offline

#7 2022-03-07 19:31:56

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

I didn't ask you to use sudo.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2022-03-07 19:40:44

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

without sudo, it just outputs 'command not found'.

Offline

#9 2022-03-07 19:43:52

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Oops sorry, that should have been pacman-conf


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#10 2022-03-07 19:45:05

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

prayner96 wrote:

Ran through my bash command history. It doesn't show what exact command I put in,

/var/log/pacman.log should have everything about your updates. What are its contents? (We need at least the most recent entries starting about one day before the problematic update occured)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#11 2022-03-07 19:49:14

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

No problem, I appreciate the fast replies btw.

The output of pacman-conf is a list of server urls using the template "server = url".

I would copy the output here but I have no access to this forum or email from my linux laptop.

Offline

#12 2022-03-07 20:00:18

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

prayner96 wrote:

The output of pacman-conf is a list of server urls using the template "server = url".

Nope, that's only the bottom of the output. We need to see the beginning as well.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#13 2022-03-07 20:28:53

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Accidentally turned off my computer. RIP. (screenshot of the starting version screen)

https://imgur.com/a/joVwuk0

Offline

#14 2022-03-07 20:55:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,169

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

See post #4. That's pretty much all you can do now.

Offline

#15 2022-03-07 20:58:31

progandy
Member
Registered: 2012-05-17
Posts: 5,269

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Scimmia wrote:

See post #4. That's pretty much all you can do now.

This is described in the wiki as well (steps 1-4 from "Pacman crashes during an upgrade": https://wiki.archlinux.org/title/Pacman … an_upgrade )
Edit: That uses --sysroot which is preferred when it works, but a missing glibc may force you to use --root instead.

Last edited by progandy (2022-03-07 21:02:44)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#16 2022-03-07 22:28:06

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Thanks for helping me out. I will follow the instructions tomorrow.

Offline

#17 2022-03-10 19:24:16

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Okay so I took a break, but I'm not sure how to boot from installation medium.

I flashed the latest ISO version of arch linux on my usb drive, plugged it in to my linux laptop, but my keyboard won't let me do anything at the boot menu. After a few seconds, it automatically boots arch linux and brings me back to the starting version screen, but I don't know if there's a keyboard shortcut I need to use to get bach to the command line.

Any resources on how to get past this step would be great!

EDIT: After some tweaking, I am able to use my keyboard again at the boot menu.

Last edited by prayner96 (2022-03-10 19:32:09)

Offline

#18 2022-03-10 21:46:03

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

So, to avoid screwing this up again, should I open up grub at the boot menu and run steps 2-4 in the grub shell thing?

Offline

#19 2022-03-10 22:53:42

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

You want to enter the commands from the shell started by the installation media after you selected that from the bootloader.
Replace the command at step 4 with:

# pacman --root /mnt --cache /mnt/var/cache/pacman/pkg -Syu

Offline

#20 2022-03-11 14:47:28

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

I tried to follow the instructions and learn more about my situation. It feels like I'm missing something though. At the GRUB menu, I have the following options:

Arch Linux | This is the default option and the one that will be selected automatically. It leads to the starting version screen.
Advanced options for Arch Linux | Leads to a new menu with the options: "Arch Linux, with Linux linux"; or "Arch Linux, with Linux linux (fallback initramfs)". Both options also lead to the starting version screen.
UEFI Firmware Settings

I also have the option to press 'e' to edit the commands before booting, and  'c' for a command-line (which leads to a minimal Bash with grub>).

My interpretation of the Arch wiki is that I should be able to boot Arch linux using my USB flash drive with the latest version of Arch flashed. But my only option seems to be to open the command line in the grub menu and following steps 2-4 using loqs suggestion.

Offline

#21 2022-03-11 15:20:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,169

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

You can't do anything from the grub command line. You have to boot the install ISO, which doesn't use grub at all.

Offline

#22 2022-03-11 15:44:48

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

@Scimmia Hmm. I will troubleshoot to see why my laptop isn't recognising my USB drive

Offline

#23 2022-03-11 23:02:38

prayner96
Member
Registered: 2022-03-06
Posts: 68

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

No success trying to boot using a live USB drive. I tried three differents ISO image downloads of arch linux on three different USB drives using Rufus and BalenaEtcher. However, all attempts on my linux laptop led to the GRUB menu and then the starting version screen.

Not sure what I'm missing, might be worth opening a new post to address this specific issue. Any ideas?

Offline

#24 2022-03-11 23:04:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,169

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

Sounds like you aren't using them in dd mode.

Offline

#25 2022-03-11 23:12:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,463
Website

Re: [SOLVED] /usr/lib/libc.so.6: version `GLIBC_2.34’ not found

If you're using rufus, see the note box at https://wiki.archlinux.org/title/USB_fl … sing_Rufus

As mentioned, if you reach GRUB, then you're not booting from the Arch installation USB. If you still have no success with dd mode, then you probably need to check your laptops documentation to see how you can override the boot order.


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