Asks for root password then won't run

Asked by RicD

I followed the instructions and downloaded the latest snapshot: EasyUbuntu_2006-07-25

Running the commands, I get:

:~$ cd EasyUbuntu_2006-07-25
:~/EasyUbuntu_2006-07-25$ sudo python easyubuntu.in
Password:
You cannot run EasyUbuntu as root. Please run it as a user.
:~/EasyUbuntu_2006-07-25$

This doesn't make a ton of sense - I need to provide my root password because of the sudo command, but then the command won't execute because I'm running as root??

This is a clean install of Dapper. Any ideas? I really don't want to go back to flaky Mepis to get the functionality I need.

Question information

Language:
English Edit question
Status:
Solved
For:
EasyUbuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John Ingleby (john-coronet) said :
#1

Same problem here. Odd that no-one else seems to have reported this. I am using Edubuntu 6.06 fresh install.

John
****

Revision history for this message
RicD (ricday) said :
#2

Strange. I scrubbed the drive and did a reinstall of Ubuntu 6.06 but that has made no difference. Very frustrating, frankly.

Revision history for this message
KarlGoetz (kgoetz) said :
#3

RicD wrote:
> New support request #1282 on EasyUbuntu:
> https://launchpad.net/products/easyubuntu/+ticket/1282
>
> I followed the instructions and downloaded the latest snapshot: EasyUbuntu_2006-07-25
>
> Running the commands, I get:
>
> :~$ cd EasyUbuntu_2006-07-25
> :~/EasyUbuntu_2006-07-25$ sudo python easyubuntu.in
> Password:
> You cannot run EasyUbuntu as root. Please run it as a user.
> :~/EasyUbuntu_2006-07-25$
>
> This doesn't make a ton of sense - I need to provide my root password because of the sudo command, but then the command won't execute because I'm running as root??
>
> This is a clean install of Dapper. Any ideas? I really don't want to go back to flaky Mepis to get the functionality I need.
>
are you logged in as root (root@hostname)? if so, thats whats cuasing
the problem.

Revision history for this message
RicD (ricday) said :
#4

> are you logged in as root (root@hostname)? if so, thats whats
> cuasing the problem.

Hi Karl

No, so far as I know I'm logged in as the (regular?) user created when Ubuntu was installed. I just created a new user and didn't grant the user admin privileges. Switched users to the new user and tried again.

After running sudo python easyubuntu.in I was asked for a password and gave the one assigned to the new user. Nothing happened.

Afraid I'm still lost. Should I reinstall Ubuntu yet again, create a non-privileged user, login as that user, and start the EasyUbuntu process over again? Or am I still missing something?

I really appreciate the help. I've installed EasyUbuntu on another computer here running Kubuntu without any problems and without the need to create a new user, so I am a tad confused 8^(

Revision history for this message
KarlGoetz (kgoetz) said :
#5

RicD wrote:
> Comment:
>
>> are you logged in as root (root@hostname)? if so, thats whats
>> cuasing the problem.
>>
>
> Hi Karl
>
> No, so far as I know I'm logged in as the (regular?) user created when Ubuntu was installed. I just created a new user and didn't grant the user admin privileges. Switched users to the new user and tried again.
>
> After running sudo python easyubuntu.in I was asked for a password and gave the one assigned to the new user. Nothing happened.
>
> Afraid I'm still lost. Should I reinstall Ubuntu yet again, create a non-privileged user, login as that user, and start the EasyUbuntu process over again? Or am I still missing something?
>
> I really appreciate the help. I've installed EasyUbuntu on another computer here running Kubuntu without any problems and without the need to create a new user, so I am a tad confused 8^(
>
Make sure the user you try and run easyubuntu as is an administrator (id
$whoami in a terminal should say 'admin' in the output somewhere).
I'll just notifiy the -devel blokes about your support request, they may
be able to help better then me.
kk

Revision history for this message
Venkat Raghavan (venkatraghavan) said :
#6

Never reinstall Ubuntu. I am pretty sure that your problem might be caused due to a stupid assumption on my part!

I think on Ubuntu, kbrooks has some funky stuff going on, so you might just try running as user. "python easyubuntu.in" without the sudo. It will ask you for your password later, i guess. Sorry about the confusion

Revision history for this message
Kyle Brooks (kyle-brooks) said :
#7

You are missing something. The funky stuff is this.

EasyUbuntu can run as a user.

Revision history for this message
Kyle Brooks (kyle-brooks) said :
#8

More specifically, in the nightly builds, you cannot run as root directly or indirectly because the "run as user" functionality makes this redundant. The run as user functionality was introduced due to concerns about security and user-friendliness. So please run EasyUbuntu as a normal user, and you will be prompted for YOUR password at the normal time.

Revision history for this message
RicD (ricday) said :
#9

Sorry for the delayed reply - business travel got in the way.

I finally installed a different distribution to solve the problem, which was on my (non-technical) wife's computer. Since I returned I installed Kubuntu on another computer here and then the release version of easy and that worked fine.

Thanks to all who commented.

Revision history for this message
Roland Lock (rrl-sts) said :
#10

I got the "cannot run as root" warning so ran as user but....

admin@music:~/EasyUbuntu_2006-08-15$ python ./easyubuntu.in
When you get a 'Password: ' prompt, type in your user password.

The problem is that I don't GET a password prompt!

System sanity check: PASSED!
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Permission denied.

I tried the Release Version but that gives me other problems which I will raise in another post. What am I doing wrong?

Revision history for this message
rhandir (rhandir) said :
#11

I ran this per directions, as user and got the error message above:
<code>
user@user-desktop:~/EasyUbuntu_2006-08-16$ sudo python easyubuntu.in
Password:
You cannot run EasyUbuntu as root. Please run it as a user.
</code>

So I tried this instead:
<code>
user@user-desktop:~/EasyUbuntu_2006-08-16$ python easyubuntu.in
</code>
Which works, and launches the dialogue box that lets you pick what to download. When you select which packages, then it asks for your password.

Note that terminal showed the following text, including an error:
<code>
When you get a 'Password: ' prompt, type in your user password.
System sanity check: PASSED!

(easyubuntu.in:7540): libglade-WARNING **: unknown attribute `translateable' for <property>.
</code>
____
note last word in previous code section is property inside of the greater than/less than marks.

When you get a 'Password: ' prompt, type in your user password.
System sanity check: PASSED!

Revision history for this message
rhandir (rhandir) said :
#12

Tried the latest version via subversion. I got this far, and hit a similar error:

user@user-desktop:~/easyubuntu/trunk$ python easyubuntu.in
When you get a 'Password: ' prompt, type in your user password.
System sanity check: PASSED!
Traceback (most recent call last):
  File "easyubuntu.in", line 60, in ?
    main()
  File "easyubuntu.in", line 51, in main
    detect.replace(confdir)
  File "/home/user/easyubuntu/trunk/EasyUbuntu/detect.py", line 184, in replace
    repos_URI = replace_base(confdir)
  File "/home/user/easyubuntu/trunk/EasyUbuntu/detect.py", line 132, in replace_base
    os.mkdir(confdir, 0777)
OSError: [Errno 13] Permission denied: '/home/user/easyubuntu/trunk/conf'

I feel like an idiot. What am I missing?

Revision history for this message
KarlGoetz (kgoetz) said :
#13

rhandir wrote:
> Support request #1282 on EasyUbuntu changed:
> https://launchpad.net/products/easyubuntu/+ticket/1282
>
> Comment:
> Tried the latest version via subversion. I got this far, and hit a similar error:
>
> user@user-desktop:~/easyubuntu/trunk$ python easyubuntu.in
> When you get a 'Password: ' prompt, type in your user password.
> System sanity check: PASSED!
> Traceback (most recent call last):
> File "easyubuntu.in", line 60, in ?
> main()
> File "easyubuntu.in", line 51, in main
> detect.replace(confdir)
> File "/home/user/easyubuntu/trunk/EasyUbuntu/detect.py", line 184, in replace
> repos_URI = replace_base(confdir)
> File "/home/user/easyubuntu/trunk/EasyUbuntu/detect.py", line 132, in replace_base
> os.mkdir(confdir, 0777)
> OSError: [Errno 13] Permission denied: '/home/user/easyubuntu/trunk/conf'
>
> I feel like an idiot. What am I missing?

open a terminal and run 'sudo chown yourname.yourname
/home/user/easyubuntu/trunk/conf', where yourname is your login name.
then try rerunning :)
kk