
Peter Reutemann wrote:
I just upgraded a spare box, to see if it's safe to upgrade my main machine, and the upgrade has broken sudo.
When I try to use sudo it says:
sudo: unable to resolve host calc
calc being the hostname of this machine.
How do I fix this? I guess adding the hostname to /etc/hosts would fix it but I can't do that because sudo is broken. Also I haven't set up a root account on this machine.
Aside from booting from a rescue disk is there any other way to fix this?
Quite a few people seem to have experienced this problem: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/195308
Using "gksudo" seems to work for some people: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/195308/comments/3
Also, have you tried booting in failsafe mode?
HTH
Cheers, Peter
Thanks Peter, I'd forgotten that failsafe mode gives you into a root shell. For anyone who's interested in /etc/hosts I changed the line 127.0.0.1 localhost to 127.0.0.1 localhost calc Glenn -- Glenn Ramsey <glenn(a)componic.co.nz> 07 8627077 http://www.componic.co.nz