username is not in the sudoers file

in #hive-140084last year

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

Sort:  

!DHEDGE

you have 0.0 vote calls available today, your vote calls will reset at next snapshot. You can buy DHEDGE on Tribaldex or earn some daily by joining one of our many delegation pools at app.dhedge.cc to increase your daily amount.