I was trying to install vmware and needed yay for that. I installed yay trough the gui tool and that seemed to work. But after that anytime i use sudo i get this error:
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /usr/lib/sudo/sudoers.so: libldap-2.4.so.2: cannot open shared object file: No such file or directory
sudo: fatal error, unable to load plugins
I found 2 results googling this error message but they all seem to be for debian based systems.
Any help for a noob like me is greatly appreciated!
yay is simply one of many aur-helpers. The pre-installed pamac has that functionality too.
This probably means 1 of 2 things;
1 - You made some changes to your sudo configuration (tell us what)
2 - You went and messed with packages without being fully synced, ie - you are in a partial-upgrade state which is about equal to broken. Perform a full update.
@Yochanan
Looks like libldap-2.4.so.2 comes from xampp. (AUR // chaotic-aur)
The following commands will drop to root using su and then will attempt to sort/rank localized mirrors and do a full sync/upgrade, then exit su.
(make sure no other package managers are running)
I guess I should also note … that while what I typed was true … there is a caveat.
And that is that we keep a package cache by default for easy rollbacks.
I believe the default is to keep 3 cached versions of packages at maximum, but dont quote me.
In any case … to keep on top of it you may want to run the following from time to time:
paccache -rvk2
That will remove all but the 2 most recent cached versions of every repo package.
Thats means it retains the currently installed one, and the latest previous one.