username is not in the sudoers file

in computer •  11 months ago 

Screenshot_1.png

Hello guys, If you are using the Linux operating system, especially the Debian 12 operating system, after installing the Debian 12 OS, if you want to install any software or packages or bundle, or if you want to update or upgrade the system by terminal you will face this error "username is not in the sudoers file" . So today I will show you how you can fix this error.

You can see I also have the same error
Screenshot_90.png

To fix this error follow the steps. Open your terminal type "su" and press enter then type your admin password then press enter.

Screenshot_91.png

Now type "nano /etc/sudoers" and press enter.

Screenshot_92.png

You will see this type of interface

Screenshot_93.png

Now find this line "# User privilege specification" and enter your username like this.

Screenshot_95.png

For save the file press CTRL + X then type Y then press enter

Screenshot_96.png

That's all, issue has been fixed.

Screenshot_97.png

#anontechtube
Our Website - https://www.anontechtube.com
Subscribe to our YouTube Channel- https://www.youtube.com/c/AnonTechTube
Follow Us on WhatsApp: https://whatsapp.com/channel/0029VaCRZCNKWEKq6fD7t03S
Follow Us On Facebook: https://www.facebook.com/AnonTechTube
Follow Us on Telegram- https://t.me/AnonTechTube
Follow Us on Twitter: https://twitter.com/AnonTechTube
Follow Us on Instagram: https://www.instagram.com/anontechtube
WhatsApp Channel-https://whatsapp.com/channel/0029VaCRZCNKWEKq6fD7t03S
Follow Us on Quora: https://anontechtube.quora.com/


Join Blurt official Discord server Here
Follow Blurt official Twitter Here
Join Blurt official Telegram Here


Please vote as a witness

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!
Sort Order:  

This is one of the differences between Ubuntu and Debian. In Ubuntu, the default user you create is automatically added to the sudoers file.

However, you can also just switch to the super user account whenever you want to install software or do anything else that requires privileges so it isn't strictly necessary.