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 Desktop
Packages, which is subscribed to unity-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1664438

Title:
  updating device name in system settings doesn't update /etc/hosts

Status in unity-control-center package in Ubuntu:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1664438/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to