Post-installation script fails when labeled addresses are present

Bug #55020 reported by Tore Anderson
2
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Invalid
Undecided
LaMont Jones

Bug Description

As detailed by this log:

<email address hidden>:~# apt-get install postfix
Leser pakkelister ... Ferdig
Skaper oversikt over avhengighetsforhold ... Ferdig
Følgende ekstra pakker vil bli installert.
  ssl-cert
Foreslåtte pakker:
  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
Anbefalte pakker
  mail-reader resolvconf
Følgende NYE pakker vil bli installert:
  postfix ssl-cert
0 oppgraderte, 2 nylig installerte, 0 å fjerne og 0 ikke oppgradert.
Må hente 1011kB med arkiver.
Etter utpakking vil 2593kB ekstra diskplass bli brukt.
Vil du fortsette [Y/n]?
Hent:1 http://no.archive.ubuntu.com dapper/main ssl-cert 1.0.13 [9526B]
Hent:2 http://no.archive.ubuntu.com dapper/main postfix 2.2.10-1 [1002kB]
Hentet 1011kB på 0s (4102kB/s)
Forhåndsoppsetter pakker ...
Velger den tidligere fravalgte pakken ssl-cert.
(Leser database ... 14805 filer og kataloger er installerte.)
Pakker ut ssl-cert (fra .../ssl-cert_1.0.13_all.deb) ...
Velger den tidligere fravalgte pakken postfix.
Pakker ut postfix (fra .../postfix_2.2.10-1_amd64.deb) ...
Setter opp ssl-cert (1.0.13) ...

Setter opp postfix (2.2.10-1) ...
Adding group `postfix' (115)...
Done.
Adding system user `postfix'...
Adding new user `postfix' (106) with group `postfix'.
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (116)...
Done.
setting myhostname: cr0.hmg9.no.linpro.net
setting alias maps
setting alias database
changing /etc/mailname
setting myorigin
setting destinations: cr0.hmg9.no.linpro.net, localhost.hmg9.no.linpro.net, , localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all

Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
newaliases: fatal: inet_addr_local[siocgif]: ioctl SIOCGIFNETMASK: No such device
dpkg: Feil ved behandling av postfix (--configure):
 underprosessen post-installation script returnerte feilstatus 1
Det oppsto feil ved behandling av:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

(I answered the default to the Debconf questions.)

I believe this is caused by the same thing as bug #51975, namely labeled addresses being present. It installed without problem on an identic machine that had no labeled addresses at installation-time.

Tore

Revision history for this message
Tore Anderson (toreanderson) wrote :

Actually, this also affects Postfix' ability to start:

<email address hidden>:~# /etc/init.d/postfix start
 * Starting Postfix Mail Transport Agent postfix
postfix: fatal: inet_addr_local[siocgif]: ioctl SIOCGIFNETMASK: No such device
                                                                         [fail]

(That was from the machine on which the installation went OK, after I added some labeled addresses.)

Tore.

Revision history for this message
Paul Dufresne (paulduf) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in postfix:
assignee: nobody → dufresnep
status: New → Incomplete
Revision history for this message
Scott Kitterman (kitterman) wrote :

Given the reference to the nmap bug above, I doubt this is actually a Postfix specific problem.

Revision history for this message
Tore Anderson (toreanderson) wrote : Re: [Bug 55020] Re: Post-installation script fails when labeled addresses are present

* Paul Dufresne

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. You reported this bug a while ago and there hasn't
> been any activity in it recently. We were wondering is this still an
> issue for you? Can you try with latest Ubuntu release? Thanks in
> advance.

It's still present in Ubuntu 7.10:

[...]
Running newaliases
newaliases: fatal: inet_addr_local[siocgif]: ioctl SIOCGIFNETMASK: No such device

Exim installs and runs with no problems, as do most other services. I
think that maybe nmap and postfix are making the same (incorrect)
assumptions in their code which cause them both to break. ISC dhcpd
also breaks. Maybe they've all copied in the same broken code from
somewhere...

Regards
--
Tore Anderson

Changed in postfix:
status: Incomplete → Confirmed
Revision history for this message
Paul Dufresne (paulduf) wrote :

Assigning to nobody rather than myself, now that the bug is confirmed, because I was working as a bug triager.

Changed in postfix:
assignee: dufresnep → nobody
Revision history for this message
LaMont Jones (lamont) wrote :

As documented in bug #51975, your labeled address violates the standard for such interfaces. With a correct name, the code works just fine and the bug is not reproducible.

Changed in postfix:
assignee: nobody → lamont
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.