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 | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bind9 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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-
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
bash: /etc$: No such file or directory
ljohnson⋯:~$ sudo ln -s /etc/resolvconf
[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-
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
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-
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-
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/
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-
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-
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://
Something wicked happened resolving 'mirror.
Err http://
Something wicked happened resolving 'security.
Err http://
Something wicked happened resolving 'mirror.
Err http://
Something wicked happened resolving 'security.
Err http://
Something wicked happened resolving 'mirror.
Failed to fetch http://
Failed to fetch http://
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-
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://
Get:2 http://
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_
Selecting previously deselected package bind9.
Unpacking bind9 (from .../bind9_
Processing triggers for man-db ...
/usr/bin/mandb: only 3 fields in content
/usr/bin/mandb: index cache /var/cache/
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up bind9utils (1:9.7.
Setting up bind9 (1:9.7.
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/
#
* Starting domain name service... bind9
This worked around the bug.
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: bind9 1:9.7.0.
ProcVersionSign
Uname: Linux 2.6.32-41-generic x86_64
NonfreeKernelMo
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.
Status changed to 'Confirmed' because the bug affects multiple users.