0

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?

2
  • Did you have to login as guest or did your userid get created? Does cat /etc/os-release say 12.10?
    – bcbc
    Mar 19, 2013 at 22:13
  • I logged in as my user, "nathanbrauer". cat /etc/os-release does indicate that I'm on 12.10. Mar 19, 2013 at 23:05

2 Answers 2

2

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.

0
-1

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

1
  • "[user] is not in the sudoers file. This incident will be reported." Mar 19, 2013 at 23:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .