I am running Ubuntu 12.04 on my laptop using VMware Player. I am not sure why but I have an account called "User Account" in addition to my account that I usually login to use Ubuntu. Well that was just a side comment but basically all I am trying to do is install the ncurses library on Ubuntu. I have tried installing ncurses using the following command lines:
sudo apt-get install libncurses5-dev
sudo apt-get install ncurses-dev
When I tried installing ncurses twice using the above commands I received the following prompt in the terminal:
[sudo] password for username
When I type in my password I receive the following message:
username is not in the sudoers file. This incident will be reported.
So far I have tried enabling the root user ("Super User") account by following these instructions.
Here are some of the things the link suggested to do:
Allow an other user to run sudo. Type the following in the command line:
sudo adduser username sudo
Or
sudo adduser username sudo
logging in as another user. Type the following in the command line:
sudo -i -u username
Enabling the root account. Type the following in the command line:
sudo -i
Or
sudo passwd root
I have tried all of the above command lines and after typing in each command I was prompted for my password. After I entered my password I received the same message as when I tried to install ncurses:
fsolano is not in the sudoers file. This incident will be reported.
su
and add urself to sudo groupàdduser username sudo
else , you'll have to boot with live cd/usb and chroot to the installed system , it will log into root by default , set a root password for next casespasswd
, and add yourself to sudo from there , and reboot , you'll have your username added to sudo and also you'll have root password , in case if sudo still not working , you can handle it ....