** Description changed: gnome-control-center added a Recommends: libnss-myhostname years ago so that it was possible to easily change the hostname in the Details panel. That dependency no longer appears to be needed. Testing Done ============ In both Debian Testing and Ubuntu 18.04 (Debian doesn't use systemd-resolved so seemed useful to try there too). sudo apt uninstall libnss-myhostname Restart Open the GNOME Settings app (gnome-control-center) In the left sidebar, click Devices Enter a different Device name in the block Open a terminal and verify that the hostname has been changed. Other Info ========== There are concerns about having libnss-myhostname in the default install. See comment 5 at LP: #1741277. See also LP: #1162475 Note that /etc/hosts isn't updated regardless of whether libnss-myhostname is installed (I guess my bug description there was wrong but there was some kind of bug there.) Regression Potential ==================== - I believe most distros do install libnss-myhostname as recommended by https://www.freedesktop.org/wiki/Software/systemd/hostnamed/ As long as things appear to work, maybe we can ignore that recommendation. + To quote from the manpage: + + https://manpages.debian.org/unstable/nss-resolve + + "Note that systemd-resolved will synthesize DNS resource records in a + few cases, for example for "localhost" and the current hostname, see + systemd-resolved(8) for the full list. This duplicates the functionality + of nss-myhostname(8), but it is still recommended (see examples below) + to keep nss-myhostname configured in /etc/nsswitch.conf, to keep those + names resolveable if systemd-resolved is not running." + + Ubuntu uses systemd-resolved by default and it's expected that users who + don't want to use that will need to configure some things manually.
** Description changed: gnome-control-center added a Recommends: libnss-myhostname years ago so that it was possible to easily change the hostname in the Details panel. - That dependency no longer appears to be needed. + That dependency no longer appears to be needed since we switched to + systemd-resolved. Testing Done ============ In both Debian Testing and Ubuntu 18.04 (Debian doesn't use systemd-resolved so seemed useful to try there too). sudo apt uninstall libnss-myhostname Restart Open the GNOME Settings app (gnome-control-center) In the left sidebar, click Devices Enter a different Device name in the block Open a terminal and verify that the hostname has been changed. + + In Debian, running `ping new-hostname` fails, but it works fine in + UBuntu. Other Info ========== There are concerns about having libnss-myhostname in the default install. See comment 5 at LP: #1741277. See also LP: #1162475 Note that /etc/hosts isn't updated regardless of whether libnss-myhostname is installed (I guess my bug description there was wrong but there was some kind of bug there.) Regression Potential ==================== To quote from the manpage: https://manpages.debian.org/unstable/nss-resolve "Note that systemd-resolved will synthesize DNS resource records in a few cases, for example for "localhost" and the current hostname, see systemd-resolved(8) for the full list. This duplicates the functionality of nss-myhostname(8), but it is still recommended (see examples below) to keep nss-myhostname configured in /etc/nsswitch.conf, to keep those names resolveable if systemd-resolved is not running." Ubuntu uses systemd-resolved by default and it's expected that users who don't want to use that will need to configure some things manually. ** Description changed: gnome-control-center added a Recommends: libnss-myhostname years ago so that it was possible to easily change the hostname in the Details panel. That dependency no longer appears to be needed since we switched to systemd-resolved. Testing Done ============ In both Debian Testing and Ubuntu 18.04 (Debian doesn't use systemd-resolved so seemed useful to try there too). sudo apt uninstall libnss-myhostname Restart Open the GNOME Settings app (gnome-control-center) In the left sidebar, click Devices Enter a different Device name in the block Open a terminal and verify that the hostname has been changed. In Debian, running `ping new-hostname` fails, but it works fine in - UBuntu. + Ubuntu. Other Info ========== There are concerns about having libnss-myhostname in the default install. See comment 5 at LP: #1741277. See also LP: #1162475 Note that /etc/hosts isn't updated regardless of whether libnss-myhostname is installed (I guess my bug description there was wrong but there was some kind of bug there.) Regression Potential ==================== To quote from the manpage: https://manpages.debian.org/unstable/nss-resolve "Note that systemd-resolved will synthesize DNS resource records in a few cases, for example for "localhost" and the current hostname, see systemd-resolved(8) for the full list. This duplicates the functionality of nss-myhostname(8), but it is still recommended (see examples below) to keep nss-myhostname configured in /etc/nsswitch.conf, to keep those names resolveable if systemd-resolved is not running." Ubuntu uses systemd-resolved by default and it's expected that users who don't want to use that will need to configure some things manually. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1766575 Title: Drop libnss-myhostname recommends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1766575/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs