Public bug reported: probably a "paper cut" issue here. On 16.04.
Changed the hostname of a system recently by opening the system settings tool, into details, and typing a new device name. Noticed afterwards that running sudo commands in the terminal resulted in an 'unable to resolve hostname' message, although the commands ran successfully. Checked and it looked like changing the name updates /etc/hostname as expected, but it didn't update /etc/hosts for me - it still had: 127.0.0.1 localhost 127.0.1.1 (old hostname) Replacing the old hostname with the new one removed the message from the terminal when running sudo commands. ** Affects: unity-control-center (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1664438 Title: updating device name in system settings doesn't update /etc/hosts To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1664438/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs