/etc/hosts needs to contain v4 and v6 localhost entries
The autobuilder environment does not depend on a particular Linux distribution.
This being the case, some small but significant differences between systems may exist. For example:
-
/etc/hosts
-- this file is copied from the host to the autobuilder rootfs during initial setup; - Linux kernel -- this may not persist between upgrades and reboots, and may differ from other builders;
Recently several packages tripped over a discrepancy in /etc/hosts
:
The root cause is that it was missing the IPv6 ::1 localhost
entry, instead only having 127.0.0.1 localhost
.
The autobuilder script needs to install a consistent and correct /etc/hosts
file into the rootfs(s) instead of copying it from the host.