[Bug 1649370] Re: libnss-{resolve,myhostname} don’t install correctly if previously removed without being purged
Dan Streetman
1649370 at bugs.launchpad.net
Wed Jun 30 20:02:02 UTC 2021
** Changed in: systemd (Ubuntu)
Status: Triaged => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1649370
Title:
libnss-{resolve,myhostname} don’t install correctly if previously
removed without being purged
Status in systemd package in Ubuntu:
Won't Fix
Bug description:
# grep hosts /etc/nsswitch.conf
hosts: files myhostname dns
# apt install libnss-resolve
# grep hosts /etc/nsswitch.conf
hosts: files myhostname resolve [!UNAVAIL=return] dns
# apt remove libnss-resolve
# grep hosts /etc/nsswitch.conf
hosts: files myhostname dns
# apt install libnss-resolve
# grep hosts /etc/nsswitch.conf
hosts: files myhostname dns
libnss-resolve.postinst and libnss-myhostname.postinst only update
/etc/nsswitch.conf if [ "$1" = configure ] && [ -z "$2" ]. If the
package was previously removed but not purged (it is in the Config-
Files state), dpkg passes the previous version as $2, so this fails.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1649370/+subscriptions
More information about the foundations-bugs
mailing list