PDA

View Full Version : [ubuntu] sudo doesn't work after upgrading to 8.04



celsofaf
April 25th, 2008, 04:05 PM
Hello! After I upgraded my work PC from 7.10 do 8.04 (32 bits), sudo stoped working. Here is a sample of what happens:


celso@arquitas:~$ sudo su
sudo: unable to resolve host arquitas

I didn't change any config files. I'm totaly lost and have no ideas... Any light out there? :D

Thanks in advance!


EDIT: solved after a quick forum search, with a similar procedure like the one in http://ubuntuforums.org/showthread.php?t=723361 .

dannet
April 25th, 2008, 07:43 PM
I have the same problem, it seems like that /etc/hosts has not the right configuration, the problem is that to edit the file you need use sudo :/

Ederico
April 25th, 2008, 08:48 PM
Same problem here!

Anders J
April 25th, 2008, 09:20 PM
Same with me, had to get another computer to get this posted!

mdegerne
April 25th, 2008, 09:28 PM
I solved this by going through System->Administration->Network I was able to unlock and edit the hosts data through that interface. Adding the host name to the localhost line solved the sudo issues.

jjacks
April 25th, 2008, 09:30 PM
"I have the same problem, it seems like that /etc/hosts has not the right configuration, the problem is that to edit the file you need use sudo" This is correct. To get around having to use sudo, when sudo isn't available, you must reboot to recovery mode and access the file as root with the "nano /etc/hosts" command.

See the following link for more background:

https://bugs.launchpad.net/ubuntu/+bug/203593

One other thing to remember, the root password is created from the first user installation. I have lost my admin privileges by trying to change that user access. I ended up losing sudo again. Once the first user was given admin privileges again, all was right in the world!

I hope this helps,

Jonathan