How to Install and Uninstall libnss-myhostname Package on Ubuntu 21.10 (Impish Indri)

Last updated: December 24,2024

1. Install "libnss-myhostname" package

Please follow the step by step instructions below to install libnss-myhostname on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libnss-myhostname

2. Uninstall "libnss-myhostname" package

This tutorial shows how to uninstall libnss-myhostname on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libnss-myhostname $ sudo apt autoclean && sudo apt autoremove

3. Information about the libnss-myhostname package on Ubuntu 21.10 (Impish Indri)

Package: libnss-myhostname
Architecture: amd64
Version: 248.3-1ubuntu8
Multi-Arch: same
Priority: extra
Section: universe/admin
Source: systemd
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian systemd Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 305
Depends: libc6 (>= 2.34)
Filename: pool/universe/s/systemd/libnss-myhostname_248.3-1ubuntu8_amd64.deb
Size: 53068
MD5sum: 0122bbc01611cc590a84a3672e1c74a8
SHA1: 2fd54c42b0ae6f07253ae4b891a2fcdda9435331
SHA256: 2c636ae6216758c8c793efc1c5d02f49caf79508cedaacfb214fc162e0a893a2
SHA512: ba45b4f50b38179eb8a163281c8330a8554ff11ac2a2d679eac5870c67e5258f6a5debf1b70dc1079d7573509dd1b2262bbd5324370ca63d42e1b725e1784156
Homepage: https://www.freedesktop.org/wiki/Software/systemd
Description-en: nss module providing fallback resolution for the current hostname
This package contains a plugin for the Name Service Switch, providing host
name resolution for the locally configured system hostname as returned by
gethostname(2). It returns all locally configured public IP addresses or -- if
none are configured, the IPv4 address 127.0.1.1 (which is on the local
loopback) and the IPv6 address ::1 (which is the local host).
.
A lot of software relies on that the local host name is resolvable. This
package provides an alternative to the fragile and error-prone manual editing
of /etc/hosts.
.
Installing this package automatically adds myhostname to /etc/nsswitch.conf.
Description-md5: 0bec93cc0b56ef90c11c1a7842dd8f8a