package bind9 1:9.6.1.dfsg.P1-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #481752 reported by Open Sos
122
This bug affects 29 people
Affects Status Importance Assigned to Milestone
bind9 (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: bind9

:)

ProblemType: Package
Architecture: i386
Date: Fri Nov 13 12:06:59 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: bind9 1:9.6.1.dfsg.P1-3
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: bind9
Title: package bind9 1:9.6.1.dfsg.P1-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Open Sos (opensos1) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thanks for your bug report and for your contribution to ubuntu. Could you post the content of /var/log/daemon.log and /var/log/syslog at the time of the failed package upgrade to figure out why bind9 failed to be restarted?

Changed in bind9 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Jack Henderson (jack-jack-co) wrote :

Happening in the terminal as well:

Setting up bind9 (1:9.6.1.dfsg.P1-3ubuntu0.2) ...
 * Starting domain name service... bind9 [fail]
invoke-rc.d: initscript bind9, action "start" failed.
dpkg: error processing bind9 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Fernando Roxo (roxo) wrote :

Package Architecture: X86_64

# apt-get -f install
======= balhblahblah clipped ================
Preparando para substituir bind9 1:9.6.1.dfsg.P1-3 (usando .../bind9_1%3a9.6.1.dfsg.P1-3ubuntu0.2_amd64.deb) ...
 * Stopping domain name service... bind9
resolvconf: Error: /etc/resolv.conf must be a symlink
invoke-rc.d: initscript bind9, action "stop" failed.
dpkg: aviso: antigo script pre-removal retornou um erro 1 como status de saída
dpkg - tentando script do novo pacote em vez disso ...
prerm called with unknown argument `failed-upgrade'
dpkg: erro processando /var/cache/apt/archives/bind9_1%3a9.6.1.dfsg.P1-3ubuntu0.2_amd64.deb (--unpack):
 sub-processo novo script pre-removal retornou estado de saída de erro 1
Erros foram encontrados durante o processamento de:
 /var/cache/apt/archives/bind9_1%3a9.6.1.dfsg.P1-3ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

  The error message that got my attention was :

resolvconf: Error: /etc/resolv.conf must be a symlink

This file was generated by NetworkManager during a 3G connection.
After disconnecting I went to '/etc' and issued the command :

# cd /etc
# ln -sf /etc/resolvconf/run/resolv.conf

After that the installation finished without error.

# apt-get -f install
======= balhblahblah clipped ================
Preparando para substituir bind9 1:9.6.1.dfsg.P1-3 (usando .../bind9_1%3a9.6.1.dfsg.P1-3ubuntu0.2_amd64.deb) ...
 * Stopping domain name service... bind9 [ OK ]
Desempacotando substituto bind9 ...
Processando gatilhos para ufw ...
Processando gatilhos para ureadahead ...
ureadahead will be reprofiled on next reboot
Processando gatilhos para man-db ...
Configurando bind9 (1:9.6.1.dfsg.P1-3ubuntu0.2) ...
 * Starting domain name service... bind9 [ OK ]

# LC_ALL=C apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done

After connection the NetworkManager changed the file ' /etc/resolvconf/run/resolv.conf '
and seems to be working ok.

Revision history for this message
mclaud2000 (mclaud2000-deactivatedaccount) wrote :

I can confirm that the solution posted by Fernando Roxo works.

Chuck Short (zulcss)
Changed in bind9 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Ewerton de A. Dutra (ea.dutra) wrote :

I too can confirm that the solution posted by Fernando Roxo works.

Revision history for this message
fabeltranm (fabeltranm) wrote :

I too can confirm that the solution posted by Fernando Roxo works.

Revision history for this message
keepitsimpleengr (keepitsimpleengineer) wrote :

The solution posted by Fernando Roxo did not work for me.

:/etc$ ls -la | grep 'resolv.conf'
lrwxrwxrwx 1 root root 31 2010-04-22 08:26 resolv.conf -> /etc/resolvconf/run/resolv.conf
-rw-r--r-- 1 root root 54 2010-04-21 12:30 resolv.conf.100421.backup

Revision history for this message
keepitsimpleengr (keepitsimpleengineer) wrote :

apt-get install hung

:/etc# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up bind9 (1:9.6.1.dfsg.P1-3ubuntu0.3) ...
 * Stopping domain name service... bind9 [ OK ]
 * Starting domain name service... bind9 /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory
cp: `/etc/resolv.conf' and `/etc/resolv.conf' are the same file
run-parts: /etc/resolvconf/update-libc.d/postfix exited with return code 1
run-parts: /etc/resolvconf/update.d/libc exited with return code 1
invoke-rc.d: initscript bind9, action "restart" failed.
^C
dpkg: error processing bind9 (--configure):
 subprocess installed post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
 bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
ebvigmo (erik-vigmostad) wrote :

Mine hands too. Seems to be a problem with sendmail (which I don't use, I use postfix.

root@erikhome:/etc# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bind9 (1:9.7.3.dfsg-1ubuntu2.1) ...
 * Stopping domain name service... bind9 [ OK ]
 * Starting domain name service... bind9
.: 7: Can't open /usr/share/sendmail/dynamic
run-parts: /etc/resolvconf/update-libc.d/sendmail exited with return code 127
run-parts: /etc/resolvconf/update.d/libc exited with return code 1
invoke-rc.d: initscript bind9, action "restart" failed.

Revision history for this message
Joel Peláez Jorge (joelpelaez) wrote :

See, in your case is needed install "sendmail-base" package and bind9 will restarted automatic.

Revision history for this message
martin suchanek (martin-suc) wrote :

Thanks Fernando Roxo - just solved my problem.

Revision history for this message
Thomas Hood (jdthood) wrote :

The original report did not involve resolvconf. Just mysterious failure as in #790372.

Reports #5 and following relate to resolvconf and are duplicates of #491387 et al.

#10 is a duplicate of #437783.

#11 is a different bug, in sendmail.

Changed in bind9 (Ubuntu):
status: Confirmed → New
Revision history for this message
agafonov (starshiitovarish) wrote :

I have this problem too

 * Starting domain name service... bind9 [fail]
invoke-rc.d: initscript bind9, action "start" failed.
dpkg: error processing bind9 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

Jul 9 01:53:21 vps4659 named[640]: starting BIND 9.7.1-P2 -u bind
Jul 9 01:53:21 vps4659 named[640]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='
Jul 9 01:53:21 vps4659 named[640]: adjusted limit on open files from 1024 to 1048576
Jul 9 01:53:21 vps4659 named[640]: found 24 CPUs, using 24 worker threads
Jul 9 01:53:22 vps4659 named[640]: timer.c:931: unexpected error:
Jul 9 01:53:22 vps4659 named[640]: isc_thread_create() failed
Jul 9 01:53:22 vps4659 named[640]: ./main.c:579: unexpected error:
Jul 9 01:53:22 vps4659 named[640]: isc_timermgr_create() failed: unexpected error
Jul 9 01:53:22 vps4659 named[640]: create_managers() failed: unexpected error
Jul 9 01:53:22 vps4659 named[640]: exiting (due to early fatal error)

Revision history for this message
agafonov (starshiitovarish) wrote :

My last try install bind9 was after:

root@vps4659:~# apt-get install mysql-server

and

root@vps4659:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
  apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common apt apt-utils bind9 bind9-host
  bind9utils bsdutils bzip2 ca-certificates cifs-utils cpp-4.4 dhcp3-client dhcp3-common dpkg dselect fetchmail
  gcc-4.4-base ifupdown initramfs-tools initramfs-tools-bin initscripts ldap-utils libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap libavahi-client3 libavahi-common-data libavahi-common3 libbind9-60
  libblkid1 libbz2-1.0 libc-bin libc6 libcups2 libdbus-1-3 libdns66 libfreetype6 libglib2.0-0 libgnutls26
  libgssapi-krb5-2 libisc60 libisccc60 libisccfg60 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 liblwres60
  libpam-modules libpam-runtime libpam0g libperl5.10 libplymouth2 libpng12-0 libsqlite3-0 libssl0.9.8 libudev0
  libuuid1 libwbclient0 libxml2 login logrotate mount openssh-client openssh-server openssl passwd perl perl-base
  perl-modules plymouth portmap python python-minimal rsync samba samba-common samba-common-bin smbfs sudo sysv-rc
  sysvinit-utils sysvutils tar tzdata udev update-inetd upstart util-linux uuid-runtime xkb-data
97 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

now i had did only:
root@vps4659:~# apt-get upgrade
without install "mysql-server" and i ve got nice rezult:

root@vps4659:~# /etc/init.d/bind9 stop
 * Stopping domain name service... bind9 [ OK ]
root@vps4659:~# /etc/init.d/bind9 start
 * Starting domain name service... bind9 [ OK ]

Revision history for this message
Xavier Serna (xavi-serna) wrote :

I can confirm also this bug, and resolved after installing package "sendmail-base" as suggested by Joel Pelaez Jorge (joelpelaez)

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.