PDA

View Full Version : [ubuntu] [SOLVED] unable to perform certain administrative tasks - no password prompt



carelesshx
August 16th, 2008, 04:20 PM
Hi everybody

I can't use Update Manager or Add/Remove on Ubuntu because when I click on 'Apply' in either of these application, the box that normally appears asking for my password does not appear. The window eventually turns grey and hangs, and must be quit using System Monitor. This is quite annoying because the update manager is telling me there are 60+ updates to install.

I don't think I've made any significant changes to the system to cause this problem; the last changes I made were to install some HTML editing software, which was the last time these processes worked properly.

EDITED TO ADD:

Also, when I download .deb files from the internet, the Package Installer, but fails to do anything when I click 'Install Package'. Normally I would expect a password prompt here, so I suspect this is part of the same problem.

olejorgen
August 16th, 2008, 04:27 PM
What happens if you try to execute

gksudo synaptic in a terminal?

carelesshx
August 16th, 2008, 04:38 PM
What happens if you try to execute

gksudo synaptic in a terminal?
A tab appears on the panel at the bottom of the screen (next to Firefox etc.) saying "Starting Administrative Application", hangs around for about 10 seconds and then disappears. This also happens in the cases I mentioned above, which I forgot to mention. I also lose the user@hostname prompt in the terminal window.

olejorgen
August 16th, 2008, 04:58 PM
Strange... no password prompt either? Or output in the terminal?
Try
sudo synaptic ?

carelesshx
August 16th, 2008, 05:11 PM
Strange... no password prompt either? Or output in the terminal?
Try
sudo synaptic ?

<user>@<hostname>:~$ sudo synaptic
sudo: unable to resolve host <hostname>
[sudo] password for <user>:
And then it runs as expected.

I've never used Syanptic to select what to install though so it would be better to have the built-in installer working - as well as the update manager of course.

It did throw up a couple of errors in the terminal while it was running, however:

(synaptic:8632): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed

(synaptic:8632): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed

(synaptic:8632): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
If that is relevant.

I'm going to work now, so it will be a few hours before I'm able to respond again. Thanks for the help so far.

the yawner
August 16th, 2008, 08:12 PM
<user>@<hostname>:~$ sudo synaptic
sudo: unable to resolve host <hostname>
[sudo] password for <user>:
And then it runs as expected.


I'm not sure if it's related but regarding this error, kindly type the following commands on the terminal.

cat /etc/hostname
and

cat /etc/hosts

I once encountered a couple of issues on an Ubuntu server when I did a hostname change and got the same error unable to resolve host <hostname>. Apparently, the hostname must also be declared under /etc/hosts to resolve to your machine.

randytuggle
August 16th, 2008, 08:13 PM
The gray issues are usually caused by desktop effects. If anything turns gray, turn your desktop effects off and see if that helps.

olejorgen
August 16th, 2008, 08:21 PM
Hm, it's strange it complains about the host.. Not really sure what that means though.

You can run the install/remove program, if you check what the command is and do
sudo <command> Not sure what <command> is, (I don't use gnome) but you could check it in the menu editor. (alacarte I think it's called)

The update manager is worse, since it's an applet (I think?). I theory you could run gnome-panel with sudo, but I'm not sure if that's a good idea. And it doesn't really solve the problem either.

Try creating a new user with administrator priveliges and check if you have the same problem there. (You proabably have to locate the command name, and run it as sudo for this too)

carelesshx
August 17th, 2008, 01:09 AM
I'm not sure if it's related but regarding this error, kindly type the following commands on the terminal.

cat /etc/hostname
and

cat /etc/hosts

I once encountered a couple of issues on an Ubuntu server when I did a hostname change and got the same error unable to resolve host <hostname>. Apparently, the hostname must also be declared under /etc/hosts to resolve to your machine.

tim@ubuntubox:~$ cat /etc/hostname
ubuntubox
tim@ubuntubox:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntubox.home196

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
This is all correct as far as I am aware.

carelesshx
August 17th, 2008, 01:10 AM
The gray issues are usually caused by desktop effects. If anything turns gray, turn your desktop effects off and see if that helps.
I assumed windows turned grey to indicate they were busy or unresponsive...

carelesshx
August 17th, 2008, 01:16 AM
Hm, it's strange it complains about the host.. Not really sure what that means though.

You can run the install/remove program, if you check what the command is and do
sudo <command> Not sure what <command> is, (I don't use gnome) but you could check it in the menu editor. (alacarte I think it's called)

The update manager is worse, since it's an applet (I think?). I theory you could run gnome-panel with sudo, but I'm not sure if that's a good idea. And it doesn't really solve the problem either.

Try creating a new user with administrator priveliges and check if you have the same problem there. (You proabably have to locate the command name, and run it as sudo for this too)
OK... found the command for the gnome installer and ran it, had the same problem. Ran it with sudo and it worked correctly:

tim@ubuntubox:~$ sudo gnome-app-install
sudo: unable to resolve host ubuntubox
[sudo] password for tim:

** (gnome-app-install:6874): WARNING **: return value of custom widget handler was not a GtkWidget
/usr/lib/python2.5/site-packages/AppInstall/AppInstall.py:1255: GtkWarning: gtk_tree_model_sort_sort: assertion `tree_model_sort->default_sort_func != NULL' failed
item.applications.set_default_sort_func(None)
pretty much.

Going to create a new admin user now and see how that goes.

carelesshx
August 17th, 2008, 01:29 AM
Going to create a new admin user now and see how that goes.
That didn't work. New user has the same problems as my current user.

Separ
August 17th, 2008, 01:42 AM
Ok, I know how to sort this.

I'll find my other post to someone who had the same issue.

EDIT: Here they are:
1. http://ubuntuforums.org/showpost.php?p=5308973&postcount=12
2. http://ubuntuforums.org/showpost.php?p=5309072&postcount=18

Ignore the gksudo bit in the first one but follow the steps in the second post to save the file. In your case you will want to change "ubuntubox.home196" to "ubuntubox"

carelesshx
August 17th, 2008, 08:40 PM
Ok, I know how to sort this.

I'll find my other post to someone who had the same issue.

EDIT: Here they are:
1. http://ubuntuforums.org/showpost.php?p=5308973&postcount=12
2. http://ubuntuforums.org/showpost.php?p=5309072&postcount=18

Ignore the gksudo bit in the first one but follow the steps in the second post to save the file. In your case you will want to change "ubuntubox.home196" to "ubuntubox"
Solved, thanks.

Separ
August 17th, 2008, 11:41 PM
No problem ;)

Don't forget to mark this thread as [SOLVED] from Thread Tools :)