`sudo` is not working after latest update [Solved]

And what about:

cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc dracut kernel-install-for-dracut eos-dracut
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
ILoveCandy
#NoProgressBar
#CheckSpace
VerbosePkgLists
ParallelDownloads = 10

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[endeavouros]
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist

#[core-testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

#[extra-testing]
#Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Hmm. Last one: what about

pacman -Qi base-devel
~ ❯ pacman -Qi base-devel
Name            : base-devel
Version         : 1-1
Description     : Basic tools to build Arch Linux packages
Architecture    : any
URL             : https://www.archlinux.org
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : archlinux-keyring  autoconf  automake  binutils  bison  debugedit  fakeroot  file  findutils  flex  gawk  gcc
                  gettext  grep  groff  gzip  libtool  m4  make  pacman  patch  pkgconf  sed  sudo  texinfo  which
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 0.00 B
Packager        : Levente Polyak <anthraxx@archlinux.org>
Build Date      : Mon 30 Jan 2023 10:56:00 PM EET
Install Date    : Mon 08 Jul 2024 05:57:18 AM EEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

I am going to test the below command in a VM, so don’t run it yet.

run0 pacman -Rs sudo && run0 pacman -S sudo

Give me a few minutes. Will need to boot and then reboot the VM.

Try overwriting the conflicting files when you reinstall like this:

run0 pacman -S --overwrite "*" sudo
1 Like

Of course, hope it works :pray:

Finally, It did the trick :grinning:

It’s working now:

~ ❯ run0 pacman -S --overwrite "*" sudo
warning: sudo-1.9.15.p5-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)  Old Version  New Version  Net Change

core/sudo    1.9.15.p5-2  1.9.15.p5-2    7.58 MiB

Total Installed Size:  7.58 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                               [--------------------------------------------] 100%
(1/1) checking package integrity                                             [--------------------------------------------] 100%
(1/1) loading package files                                                  [--------------------------------------------] 100%
(1/1) checking for file conflicts                                            [--------------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling sudo                                                      [--------------------------------------------] 100%
ldconfig: File /usr/lib/libixml.so is empty, not checked.
ldconfig: File /usr/lib/libixml.so.11.1.2 is empty, not checked.
ldconfig: File /usr/lib/libupnp.so.17.1.10 is empty, not checked.
ldconfig: File /usr/lib/libupnp.so.17 is empty, not checked.
ldconfig: File /usr/lib/libixml.so.11 is empty, not checked.
ldconfig: File /usr/lib/libupnp.so is empty, not checked.
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Creating temporary files...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Refreshing PackageKit...
(5/5) Checking which packages need to be rebuilt
~ ❯ sudo pacman -Syyu                                                                                                        6s
[sudo] password for emary: 
:: Synchronizing package databases...
 endeavouros                                      15.1 KiB  47.6 KiB/s 00:00 [--------------------------------------------] 100%
 core                                            118.6 KiB   237 KiB/s 00:01 [--------------------------------------------] 100%
 extra                                             7.2 MiB   557 KiB/s 00:13 [--------------------------------------------] 100%
 multilib                                        138.9 KiB   191 KiB/s 00:01 [--------------------------------------------] 100%
:: Starting full system upgrade...
 there is nothing to do
~ ❯                                                                                                                         17s
1 Like

@BluishHumility @anon93652015 @dalto Thank you for your time and patience, I’m Really gratefull to you all!

2 Likes

Nice.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.