This sounds very similar to bug 32906, but this was fixed in hardy (8.04). I cannot reproduce this at all, if I remove "localhost" and my hostname from /etc/hosts, both sudo and gksu still work fine.
To debug this on your side: do you also get the hang if you run "sudo" in a root terminal? I. e. do sudo -i [ wait until you have a root prompt ] sudo id The second sudo shouldn't ask you for a password, but just print "uid=0(root) ...". Does it hang? Does it give you any error message? If it hangs, please do (in that root shell) strace -o /tmp/sudo.trace sudo true and attach /tmp/sudo.trace here. ** Changed in: sudo (Ubuntu) Status: New => Incomplete -- sudo hangs when localhost can not be resolved https://bugs.launchpad.net/bugs/234879 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs