You are not logged in.
Pages: 1
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
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
Should I use "pacman -U"?
Offline
Why?
With what?
https://wiki.archlinux.org/title/Pacman … g_packages - and then read the entire wiki page…
Online
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
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
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
Thank you a lot! It completely works now. I'm so grateful.
Offline
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
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
Pages: 1