[Bug 1024755] [NEW] package bind9 1:9.7.0.dfsg.P1-1ubuntu0.5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

keepitsimpleengr 1024755 at bugs.launchpad.net
Sat Jul 14 17:37:47 UTC 2012


Public bug reported:

Failed while updating

Tried this...

⋯:$ sudo apt-get purge bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1,085kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 397321 files and directories currently installed.)
Removing bind9 ...
 * Stopping domain name service... bind9                                                        resolvconf: Error: /etc/resolv.conf must be a symlink
invoke-rc.d: initscript bind9, action "stop" failed.
dpkg: error processing bind9 (--purge):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

⋯:$ /etc$ sudo ln -s /etc/resolvconf/run/resolv.conf
bash: /etc$: No such file or directory
ljohnson⋯:~$ sudo ln -s /etc/resolvconf/run/resolv.conf
[sudo] password for ⋯: 
⋯:~$ sudo apt-get purge bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1,085kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 397321 files and directories currently installed.)
Removing bind9 ...
 * Stopping domain name service... bind9                                                        resolvconf: Error: /etc/resolv.conf must be a symlink
invoke-rc.d: initscript bind9, action "stop" failed.
dpkg: error processing bind9 (--purge):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)
⋯:~$ sudo -i
root⋯:~# cd /etc
root⋯:/etc# mkdir postfix
mkdir: cannot create directory `postfix': File exists
root⋯:/etc# touch postfix/main.cf
root⋯:/etc# rm resolv.conf
root⋯:/etc#  ln -s /etc/resolvconf/run/resolv.conf
root⋯:/etc# service bind9 restart
 * Stopping domain name service... bind9                                                 [ OK ] 
 * Starting domain name service... bind9                                                 [ OK ] 
root⋯:/etc# apt-get purge bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1,085kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 397321 files and directories currently installed.)
Removing bind9 ...
 * Stopping domain name service... bind9                                                 [ OK ] 
Purging configuration files for bind9 ...
Deleting bind user
rmdir: failed to remove `/var/lib/bind': No such file or directory
dpkg: warning: while removing bind9, directory '/etc/bind' not empty so not removed.
Processing triggers for man-db ...
/usr/bin/mandb: only 3 fields in content
/usr/bin/mandb: index cache /var/cache/man/9721 corrupt
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
root⋯:/etc# apt-get purge bind9utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9utils*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 328kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 397265 files and directories currently installed.)
Removing bind9utils ...
Processing triggers for man-db ...
/usr/bin/mandb: only 3 fields in content
/usr/bin/mandb: index cache /var/cache/man/16636 corrupt
root⋯:/etc# apt-get purge bind9-doc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9-doc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1,311kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 397248 files and directories currently installed.)
Removing bind9-doc ...
root⋯:/etc# apt-get install bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  bind9utils
Suggested packages:
  bind9-doc
The following NEW packages will be installed:
  bind9 bind9utils
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 466kB of archives.
After this operation, 1,413kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Err http://mirror.math.ucdavis.edu/ubuntu/ lucid-security/main bind9utils 1:9.7.0.dfsg.P1-1ubuntu0.5
  Something wicked happened resolving 'mirror.math.ucdavis.edu:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main bind9utils 1:9.7.0.dfsg.P1-1ubuntu0.5
  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://mirror.math.ucdavis.edu/ubuntu/ lucid-updates/main bind9utils 1:9.7.0.dfsg.P1-1ubuntu0.5
  Something wicked happened resolving 'mirror.math.ucdavis.edu:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main bind9 1:9.7.0.dfsg.P1-1ubuntu0.5
  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://mirror.math.ucdavis.edu/ubuntu/ lucid-updates/main bind9 1:9.7.0.dfsg.P1-1ubuntu0.5
  Something wicked happened resolving 'mirror.math.ucdavis.edu:http' (-5 - No address associated with hostname)
Failed to fetch http://mirror.math.ucdavis.edu/ubuntu/pool/main/b/bind9/bind9utils_9.7.0.dfsg.P1-1ubuntu0.5_amd64.deb  Something wicked happened resolving 'mirror.math.ucdavis.edu:http' (-5 - No address associated with hostname)
Failed to fetch http://mirror.math.ucdavis.edu/ubuntu/pool/main/b/bind9/bind9_9.7.0.dfsg.P1-1ubuntu0.5_amd64.deb  Something wicked happened resolving 'mirror.math.ucdavis.edu:http' (-5 - No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Set software sources to 76.73.4.58

root⋯:/etc# apt-get install bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaccess-bridge-java libaccess-bridge-java-jni
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  bind9utils
Suggested packages:
  bind9-doc
The following NEW packages will be installed:
  bind9 bind9utils
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 466kB of archives.
After this operation, 1,413kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://76.73.4.58/ubuntu/ lucid-security/main bind9utils 1:9.7.0.dfsg.P1-1ubuntu0.5 [117kB]
Get:2 http://76.73.4.58/ubuntu/ lucid-security/main bind9 1:9.7.0.dfsg.P1-1ubuntu0.5 [348kB]
Fetched 466kB in 0s (706kB/s)
Preconfiguring packages ...
Selecting previously deselected package bind9utils.
(Reading database ... 397200 files and directories currently installed.)
Unpacking bind9utils (from .../bind9utils_1%3a9.7.0.dfsg.P1-1ubuntu0.5_amd64.deb) ...
Selecting previously deselected package bind9.
Unpacking bind9 (from .../bind9_1%3a9.7.0.dfsg.P1-1ubuntu0.5_amd64.deb) ...
Processing triggers for man-db ...
/usr/bin/mandb: only 3 fields in content
/usr/bin/mandb: index cache /var/cache/man/26718 corrupt
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up bind9utils (1:9.7.0.dfsg.P1-1ubuntu0.5) ...
Setting up bind9 (1:9.7.0.dfsg.P1-1ubuntu0.5) ...
Adding group `bind' (GID 133) ...
Done.
Adding system user `bind' (UID 126) ...
Adding new user `bind' (UID 126) with group `bind' ...
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
#
 * Starting domain name service... bind9                             

This worked around  the bug.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: bind9 1:9.7.0.dfsg.P1-1ubuntu0.5
ProcVersionSignature: Ubuntu 2.6.32-41.91-generic 2.6.32.59+drm33.24
Uname: Linux 2.6.32-41-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sat Jul 14 09:59:45 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 1
SourcePackage: bind9
Title: package bind9 1:9.7.0.dfsg.P1-1ubuntu0.5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

** Affects: bind9 (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-package lucid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bind9 in Ubuntu.
https://bugs.launchpad.net/bugs/1024755

Title:
  package bind9 1:9.7.0.dfsg.P1-1ubuntu0.5 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1024755/+subscriptions



More information about the Ubuntu-server-bugs mailing list