sudo: no valid sudoers sources found, quitting

Asked by Edmond Condillac

When I try updating my Ubuntu OS the following error message is displayed in the terminal:
condy@condyHP:~$ sudo apt-get install update
>>> /etc/sudoers: syntax error near line 30 <<<
sudo: parse error in /etc/sudoers near line 30
sudo: no valid sudoers sources found, quitting
sudo: unable to initialise policy plug-in

My new Unix password works for cleaning with Ubuntu Tweak's janitor. BleachBit as Root fails to open.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

Have you tried modifying the sudoers file?
The error message indicates that its contents are syntactically wrong.

The solution most probably is
rebooting the computer, selecting recovery mode - root command prompt from the grub menu
remounting the root file system in read-write mode
correcting the contents of the /etc/sudoers file.

Revision history for this message
Edmond Condillac (econ22) said :
#2

Thank for the help. The modifications have worked. But what I don't understand is:

1) I entered a new UNIX password at Recovery Mode
2) Now this UNIX password has been transformed to become my sudo password
3) I've had to create a new UNIX password to gain root user privilages from the normal terminal

Anyway, problem solved:)
Thanks again