Ubuntu: root password not recognized


I got kubuntu 12.04 on my laptop, but everytime I try t update, install or something like that it does not recoginze my password, here is what the konsole says...

ernesto@neto-desktop:~$ sudo apt-get update  [sudo] password for ernesto:   Sorry, try again.  [sudo] password for ernesto:   Sorry, try again.  [sudo] password for ernesto:   Sorry, try again.  sudo: 3 intentos de contraseña incorrectos  ernesto@neto-desktop:~$   

and no advance from there, i am some kind of new for this version (12.04 precise pangolin) and i m not sure what is next, thanks in advance for the help and answers!


How to fix “username is not in the sudoers file. This incident will be reported” Error In Ubuntu

Reboot the computer. If Ubuntu is your primary and the only operating system in your computer, press the “Shift” button when it is booting up. This should make the Grub screen show up on your monitor. On the Grub screen, press the down button to the Recovery mode and press Enter.

On the next screen, select “Check all file system (will exit read only mode)”.

When you see the message “Finished, press Enter“, press Enter.

Next, select “Drop to root shell prompt”.

You will now be at the command line. Type:

usermod -a -G root your_user_name_here  

Replace the username with your own login name.

That’s it. Now type “exit” and select “Resume normal boot”. Follow the Steps below if u messup With sudoers file

Do the Steps Untill 3

sudo cp /etc/sudoers /etc/sudoers.backup    sudo vim /etc/sudoers  

Check the following lines in the file

# This file MUST be edited with the 'visudo' command as root.  #  # Please consider adding local content in /etc/sudoers.d/ instead of  # directly modifying this file.  #  # See the man page for details on how to write a sudoers file.  #  Defaults        env_reset  Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"    # Host alias specification    # User alias specification    # Cmnd alias specification    # User privilege specification  root    ALL=(ALL:ALL) ALL    # Members of the admin group may gain root privileges  %admin ALL=(ALL) ALL    # Allow members of group sudo to execute any command  %sudo   ALL=(ALL:ALL) ALL    # See sudoers(5) for more information on "#include" directives:    #includedir /etc/sudoers.d  

Next save the file using


Next Change the permission to the sudoers file

chmod 440 /etc/sudoers

Then Add your Username to the Sudo group

usermod -a -G root your_user_name_here  

Exit the Shell and resume normal boot are restart ...

This Will Fix Your Issue , i'm Following this and Its Found from google , While i faced the same issue ..

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »