
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 -- Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ http://www.cs.waikato.ac.nz/~fracpete/ +64 (7) 838-4466 Ext. 5174