Version:
Ubuntu Hardy 8.04
Symptoms:
After upgrading Ubuntu from 7 to 8.04, then when trying to SUDO something, you get the following smptoms.
SUDO in Gnome : gksudo [whatever] don't work
also when trying to sudo in console, I get this message
SUDO in Terminal/console don't know machine localhost
>sudo bash
>sudo: unable to resolve host [computername]
Solution:
1) Backup and then edit edit the /etc/hosts file
cp /etc/hosts /home/somebackupfolder/hosts
2) Edit the line 127.0.0.1 and change the one with the trailing domain on it, [computername].[SOMEDOMAIN]. Remove that [SOMEDOMAIN].
Reasons:
Basically your computer lost it's own localhost identity. Somehow it is related to networking, possibly with Samba. Samba should still work provided you followed the Samba bookmarking mount points here.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment