LinuxError: Solution for ‘is not in the sudoers file’
Today, while trying to install software as a regular user, I encountered a rather interesting error indicating that the user is not in the sudoers file.
Error: Debian is not in the sudoers file. This incident will be reported..
This is simply because the user has not been added to the sudo configuration file. The solution is to open the configuration file and add user permissions.
Solution: Step 1: Switch to the root user using su and enter the following command to access the sudo configuration file.
# cd ~
# visudo
Step 2: Locate the appropriate section in the configuration file, add user permissions, and save and exit.

Step 3: After this, using the sudo command again will not result in an error message.