Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The first indication I had of this problem, was Synaptic refused to run.
In terminal, typing sudo apt-get install packagename, I got this response
sudoers file: syntax error, line 1 <<<
sudo: parse error in /etc/sudoers near line 1
I've searched various forums, and learnt a little about visudo, and booting recovery mode , and entering the root shell to run visudo, but I can't see what the problem is, and also how to edit it, and save the edits.
Trying to run visudo in a terminal brings these responses
There seems to be a syntax error in the file /etc/sudoers
You will need to boot into the recovery mode ( the option presented at the Grub menu ) or boot using a recovery disk/Knoppix, mount the partition and view/edit the contents of the file /etc/sudoers
There seems to be a syntax error in the file /etc/sudoers
that was response when trying to run sudo in terminal.
The problem is now fixed, an additional line had been added before line 1, how it happened , I know know, as I didn't even know about this file until this problem struck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.