-1

I have a deepin linux (debian based) installed on my notebook 3 days ago and I'm trying to use sudo like sudo apt-get install [somethings] and 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: /usr/lib/sudo/sudoers.so: file too short
sudo: fatal error, unable to load plugins

After that I try to use su and type password then I get:

su: Authentication failure
  • 2
    which password are you using for su? – Rui F Ribeiro Dec 4 '17 at 18:09
  • That password was set in installing – Majid Hosseini Dec 4 '17 at 18:13
  • When I used tools like Deepin Package Manager, that accepted my password. – Majid Hosseini Dec 4 '17 at 18:20
  • I try to open termianl as admin with UI and I can change root password with passwd and I can set new password but sudo error Still remains – Majid Hosseini Dec 4 '17 at 18:37
2

I try to open terminal as admin with UI and I can change root password with passwd and I can set new password after than I remove sudo and reinstalled it.

It works now.

  • It looks like the /usr/lib/sudo/sudoers.so file was truncated or otherwise damaged, and removing & reinstalling the sudo package fixed it. – telcoM Dec 10 '17 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.