Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just installed Wubi fresh (Win 7; Ubuntu 12.10).

After booting into Ubuntu for the first time, my first instinct is to:

sudo apt-get update && sudo apt-get upgrade

However, I'm quickly prompted with:

[user] is not in the sudoers file.  This incident will be reported.

I checked user settings and it appears that there are NO admin accounts:

User Accounts

How can I resolve this? And why did Wubi set me up with a non-admin account?

share|improve this question
    
Did you have to login as guest or did your userid get created? Does cat /etc/os-release say 12.10? –  bcbc Mar 19 '13 at 22:13
    
I logged in as my user, "nathanbrauer". cat /etc/os-release does indicate that I'm on 12.10. –  Nathan J. Brauer Mar 19 '13 at 23:05
    
can you log in as root? –  RPi Awesomeness Mar 20 '13 at 1:31

2 Answers 2

up vote 2 down vote accepted

I'd recommend filing a bug and attaching your logfile (from the %TEMP% directory in Windows: wubi-12.10-rev273.log.

You could try to fix it manually by booting into the Recovery menu: hold the Shift key after selecting Ubuntu, select Advanced options and then Recoverymode. Once you see the recovery menu select the root prompt.

First you need to remount the drive read/write:

mount -o remount,rw /

And then add yourself to the sudo group and reboot:

usermod -a -G sudo nathanbrauer
reboot

I've never heard of this problem before on a Wubi install, so don't know if this will fix it or whether there is some other underlying problem. But it's probably quicker to try than reinstalling. I do recommend filing that bug report though.

share|improve this answer
    
Thanks! I'll try this in the morning. –  Nathan J. Brauer Mar 20 '13 at 3:13

you can type

sudo su -

Enter your user password now you are in a root user then you can change your root password by typing

passwd

it will ask for password and re-enter it again

share|improve this answer
    
"[user] is not in the sudoers file. This incident will be reported." –  Nathan J. Brauer Mar 19 '13 at 23:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.