Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was working on my machine. I did some Clamav Virus definition updates, ran clamav and everything worked fine using sudo.

Suddenly afterwards though, my machine started saying that

sudo: no valid sudoers sources found, quitting

What in the world is going on?

share|improve this question
    
Which Ubuntu version? (in case relevant) –  david6 Dec 11 '11 at 21:14
    

1 Answer 1

I cannot explain why it happened, but I can propose how to solve.

Check if the file /etc/sudoers still exists.

If the answer is no, download the sudo package with

cd
apt-get download sudo

then start in recovery mode, choose to run a root shell from the menu that BusyBox shows, and from command line run

mv /home/ray/sudo*.deb /var/apt/cache/archives/
apt-get purge sudo
apt-get install sudo

where I assumed /home/ray is your home directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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