You are not logged in.

#1 2022-09-02 19:12:34

bazilio97
Member
Registered: 2022-09-02
Posts: 8

[SOLVED] Command "sudo" - does not work

Hello everyone. Recently, I tried the command "sudo pacman -S git base-devel" and accidentally i chose from the list of attributes - "sudo". Now when I try to run for instance "sudo pacman -S" it shows the following output from bash- "$ sudo pacman -S r
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)

How can I fix it?

Last edited by bazilio97 (2022-09-05 11:28:02)

Offline

#2 2022-09-02 20:28:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Command "sudo" - does not work

Log in as root and fully update your system. Then never run pacman -Sy again. Partial updates are not supported, you either update everything or you update nothing.

Last edited by Scimmia (2022-09-02 20:29:08)

Offline

#3 2022-09-03 12:37:26

bazilio97
Member
Registered: 2022-09-02
Posts: 8

Re: [SOLVED] Command "sudo" - does not work

Should I use "pacman -U"?

Offline

#4 2022-09-03 12:43:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,492

Re: [SOLVED] Command "sudo" - does not work

Why?
With what?

https://wiki.archlinux.org/title/Pacman … g_packages - and then read the entire wiki page…

Online

#5 2022-09-03 12:54:31

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

Re: [SOLVED] Command "sudo" - does not work

Scimmia wrote precisely: do not run `pacman -Sy`.  Full stop.

What may have not been clear is that this prohibition is specifically for those exact flags (-Sy) not for -Syu which is the proper way to update your system.

You may safely use `pacman -S <package>` and in some circumstances it may fail, but will not do damage.  You may safely use `pacman -Syu <package>` with none of these concerns.  But never run `pacman -Sy <package>` or `pacman -Sy`.  Never use the -Sy flags without also using the -u flag.

Scimmia inferred - almost certainly correctly - that your symptoms were due to a previous use of `pacman -Sy`.  Although it's also possible that you interrupted a previous `pacman -Syu` without letting it complete, or that an AUR helper did some variety of this behind the scenes.  If you are following common but bad advice on how to install a "popular" aur helper, those instructions often tell you to deliberately run `pacman -Sy` then install some packages.  Feel free to leave flaming bags of dog poop on the doorstep of authors of any such blogs / tutorials... or just stop reading their bad advice.

Last edited by Trilby (2022-09-03 12:58:35)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2022-09-04 08:21:55

bazilio97
Member
Registered: 2022-09-02
Posts: 8

Re: [SOLVED] Command "sudo" - does not work

Thank you a lot. I think I got this.
While updating system by using pacman -Syyu - I have such messages on a bash screen "File /var/cache/pacman/pkg/pcre-8.45-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature))" and lots of such messages.
I even can not update my system to get rid of issues above..

Last edited by bazilio97 (2022-09-04 08:31:19)

Offline

#7 2022-09-04 08:32:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,492

Re: [SOLVED] Command "sudo" - does not work

While updating system by using pacman -Syyu

https://man.archlinux.org/man/core/pacm … PLY_TO_-S)
Please read what the second "y" does and then stop doing that.

such messages on a bash screen

https://bbs.archlinux.org/viewtopic.php?id=57855

"File /var/cache/pacman/pkg/pcre-8.45-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature))"

Try to update the keyring first, "pacman -Sy archlinux-keyring; pacman -Syu"

Online

#8 2022-09-04 08:46:08

bazilio97
Member
Registered: 2022-09-02
Posts: 8

Re: [SOLVED] Command "sudo" - does not work

Thank you a lot! It completely works now. I'm so grateful.

Offline

#9 2022-09-04 11:44:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,492

Re: [SOLVED] Command "sudo" - does not work

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#10 2022-09-04 13:42:46

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

Re: [SOLVED] Command "sudo" - does not work

For clarity it is a bit of an unfortunate coincidence that the solution to your problem was one of the very very few (perhaps the only) time that it makes sense to use `pacman -Sy <package>`.  This is safe and appropriate for two reasons: 1) you were instructed to do it my knowledgeable members of the community knowing exactly why it is needed while echoing advice that is available on the wiki for a solution to a specific problem and 2) it was immediately followed by a pacman command to complete the update (`pacman -Syu` in this case, though `pacman -Su` would suffice as well).  This is an exception to the rule, but the rule remains (do not otherwise use `pacman -Sy ...`).

Last edited by Trilby (2022-09-04 13:43:50)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB