postfix upgrade can fail due to "newaliases: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by protocol" under qemu-static
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Fix Released
|
High
|
Unassigned | ||
postfix (Debian) |
Won't Fix
|
Unknown
|
|||
postfix (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
this happened during a maas image build, but I assume it can happen elsewhere though i've not seen it fail. its likely a result of postfix recently having made it into the cloud image, pulled in by recommends of mdadm.
apt-get dist-upgrade
...
13:36:01 Setting up lxd-client (0.25-0ubuntu1) ...
13:36:01 Setting up postfix (2.11.3-1ubuntu3) ...
13:36:08
13:36:08 Postfix configuration was untouched. If you need to make changes, edit
13:36:08 /etc/postfix/
13:36:08 values, see postconf(1).
13:36:08
13:36:08 After modifying main.cf, be sure to run '/etc/init.
13:36:08
13:36:09 Running newaliases
13:36:09 newaliases: fatal: inet_addr_
13:36:10 dpkg: error processing package postfix (--configure):
13:36:10 subprocess installed post-installation script returned error exit status 75
13:36:10 Setting up python-cffi-backend (1.4.2-2ubuntu1) ...
...
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: postfix 2.11.3-1ubuntu2
ProcVersionSign
Uname: Linux 4.3.0-2-generic x86_64
ApportVersion: 2.19.3-0ubuntu2
Architecture: amd64
Date: Tue Jan 5 21:00:22 2016
DuplicateSignature: InvalidHostOrDomain
Ec2AMI: ami-0000072f
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: None
Ec2Ramdisk: None
EtcMailname: localhost.
Hostname: Error: command ['hostname', '--fqdn'] failed with exit code 1: hostname: Name or service not known
PostconfMydomain: localdomain
PostconfMyhostname: localhost.
PostconfMyorigin: /etc/mailname
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ResolvConf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.245.160.2
search openstacklocal
SourcePackage: postfix
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in postfix (Debian): | |
status: | Unknown → New |
summary: |
postfix upgrade can fail due to "newaliases: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by - protocol" + protocol" under qemu-static |
Changed in maas-images: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | removed: need-duplicate-check |
Changed in postfix (Ubuntu): | |
status: | Confirmed → Incomplete |
status: | Incomplete → Confirmed |
Changed in maas-images: | |
status: | Fix Committed → Fix Released |
affects: | maas-images → ubuntu |
Changed in postfix (Debian): | |
status: | New → Won't Fix |
tags: | added: zesty |
Changed in postfix (Ubuntu): | |
status: | Confirmed → In Progress |
status: | In Progress → Confirmed |
Changed in postfix (Ubuntu): | |
assignee: | nobody → Eman Kermani (e.kermani) |
Changed in ubuntu: | |
assignee: | Scott Moser (smoser) → kingsuk sarkar (king1755) |
Changed in postfix (Ubuntu): | |
status: | Confirmed → Fix Released |
assignee: | Iman Kermani (i.kermani) → kingsuk sarkar (king1755) |
description: | updated |
Changed in postfix (Ubuntu): | |
assignee: | kingsuk sarkar (king1755) → nobody |
assignee: | nobody → kingsuk sarkar (king1755) |
Changed in postfix (Ubuntu): | |
assignee: | kingsuk sarkar (king1755) → Lucas Moraes de Souza (owlucao) |
Changed in postfix (Ubuntu): | |
assignee: | Lucas Moraes de Souza (owlucao) → prudhviraj2901@gmail.com (prudhviraj2901) |
assignee: | prudhviraj2901@gmail.com (prudhviraj2901) → nobody |
Changed in ubuntu: | |
assignee: | kingsuk sarkar (king1755) → bilal elharraki (bilalelharraki) |
Changed in postfix (Ubuntu): | |
assignee: | nobody → Family Ubuntu (familyubun) |
Changed in postfix (Ubuntu): | |
assignee: | Family Ubuntu (familyubun) → nobody |
Changed in ubuntu: | |
assignee: | bilal elharraki (bilalelharraki) → nobody |
This only seems to fail on "cross" builds, where we modify arm64 images via chroot using qemu-static.
We can get the apt-get upgrade out of the way and see the failure with just the following:
$ sudo apt-get install -qy qemu-user-static
$ arm64_img_url=http:// cloud-images. ubuntu. com/daily/ server/ xenial/ 20151212/ xenial- server- cloudimg- arm64.tar. gz server- cloudimg- arm64.tar. gz server- cloudimg- arm64.tar. gz server- cloudimg- arm64.img server- cloudimg- arm64.img
$ wget "$arm64_img_url" -O xenial-
$ tar -xvzf xenial-
$ ls -l xenial-
-rw-r--r-- 1 ubuntu ubuntu 1426063360 Dec 13 00:22 xenial-
$ cp --sparse=always xenial- server- cloudimg- arm64.img root.img qemu-aarch64- static /mnt/usr/ bin/qemu- aarch64- static local[getifaddr s]: getifaddrs: Address family not supported by protocol
$ sudo mount -o loop root.img /mnt
$ sudo cp /usr/bin/
$ sudo chroot /mnt/ /usr/bin/newaliases
newaliases: fatal: inet_addr_
Note, mounting additional filesystems (/proc and /sys) does not seem to help.