If the user name was not created when the system was installed, this problem occurs when using the sudo command.
Solution: input
su
Enter the root password. If you have not set the root password before, please visit the URL settings.
http://blog.csdn.net/baidu_ 27280587/article/details/53285620
After entering the successful root environment, enter
gedit /etc/sudoer
After opening the file, find the
root ALL=(ALL:ALL) ALL
In this line, add the same line below it, and change root to your user name. Save and close the file, and then use the sudo command, no more errors will be reported.