2

I was trying to delete a folder and messed up. I'm getting this error while I'm trying to use sudo:

sudo: error while loading shared libraries: libsudo_util.so.0: cannot open shared object file: No such file or directory

How can I fix this?

Kevin Bowen
  • 19,395
  • 55
  • 76
  • 81
Saik94
  • 21
  • 1
  • 1
  • 2

2 Answers2

0

When sudo not working:

pkexec chmod go-w /usr/lib/sudo/sudoers.so
pkexec chmod 0440 /etc/sudoers 

If problem is not solved you can check

The another answer. You can check both the linked , may help to solve your problem.

Videonauth
  • 33,045
  • 16
  • 104
  • 120
Avani badheka
  • 2,396
  • 7
  • 22
  • 38
0

I think you could open ubuntu software (gui) Search for "synaptic"

Install synaptic package manager .

open synaptic package manager and search for sudo Right click the mouse on sudo choose mark for Reinstallation Then click the big apply button I think sudo will work agin for you Kevin

bob
  • 101
  • Since Synaptic must run as root to function, this is unlikely to work. – user535733 Nov 23 '17 at 02:27
  • yes Synaptic must have root permission . As long as he could log into ubuntu , he can use root permission in gui programs . Sudo isn't the root. sudo is just a package gives the main user in ubuntu root permission – bob Nov 23 '17 at 09:47