I have some serious issues after upgrading to libcap-ng-0.8.5-1. I can use neither sudo
nor su
to become root. The error is
$ LC_ALL=C sudo yay -Syu sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy" sudo: unable to load /usr/lib/sudo/sudoers.so: libcap-ng.so.0: cannot open shared object file: No such file or directory sudo: fatal error, unable to load plugins
In /var/log/pacman.log
I find:
[2024-04-14T21:28:25+0200] [ALPM] transaction started [2024-04-14T21:28:25+0200] [ALPM] upgraded libcap-ng (0.8.4-1 -> 0.8.5-1) [2024-04-14T21:28:25+0200] [ALPM] upgraded hwdetect (2024.04.09.0801-1 -> 2024.04.14.1629-1) [2024-04-14T21:28:25+0200] [ALPM] upgraded inxi (3.3.33.1-1 -> 3.3.34.1-1) [2024-04-14T21:28:25+0200] [ALPM] upgraded python-capng (0.8.4-1 -> 0.8.5-1) [2024-04-14T21:28:25+0200] [ALPM] transaction completed [2024-04-14T21:28:25+0200] [ALPM] running '30-systemd-update.hook'... [2024-04-14T21:28:25+0200] [ALPM] running 'rebuild-detector.hook'... [2024-04-14T21:47:56+0200] [ALPM] transaction started [2024-04-14T21:47:56+0200] [ALPM] error: could not create database entry libcap-ng-0.8.5-1 [2024-04-14T21:47:56+0200] [ALPM] transaction failed [2024-04-14T21:47:56+0200] [ALPM] warning: lock file missing /var/lib/pacman/db.lck
I’ve downloaded the package libcap-ng from a mirror but I’m unable to install the files manually because I have no permission to copy the files to /usr/lib/
.
Now I don’t dare to turn off the computer because I’m not sure if it will boot properly. Can anybody help me to get the system working?