Public bug reported:
When trying to change the hostname via the command hostname:
# sudo hostname newhost
The /etc/hostname file is updated, but...
[EMAIL PROTECTED]:~# sudo vi /etc/hosts
sudo: unable to lookup roller via gethostbyname()
You get this error. It means trying to change the hostname with the
hostname command completely breaks your sudo.
To solve this you have to edit your /etc/hosts file and add your new
hostname at the end of the 127.0.1.1 line.
** Affects: hostname (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
Changing hostname using "hostname" breaks sudo
https://bugs.launchpad.net/bugs/113778
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs