No luck - even purge seems to fail. This is my console output on trying that :
--------------------------------------------------------------------------
$ sudo apt-get --purge remove pdns-recursor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
pdns-recursor*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 1114kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing pdns-recursor (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
pdns-recursor
E: Sub-process /usr/bin/dpkg returned an error code (1)
========================================================
I then tried the reinstall as suggested by apt-get, and that too failed with the following output :
--------------------------------------------------------------------------
$ sudo apt-get --reinstall install pdns-recursor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
pdns-recursor
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B/446kB of archives.
After this operation, 0B of additional disk space will be used.
Selecting previously deselected package pdns-recursor.
(Reading database ... 224913 files and directories currently installed.)
Preparing to replace pdns-recursor 3.1.7-2ubuntu0.1 (using .../pdns-recursor_3.1.7-2ubuntu0.2_i386.deb) ...
* Stopping PowerDNS recursor pdns-recursor invoke-rc.d: initscript pdns-recursor, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
* Stopping PowerDNS recursor pdns-recursor invoke-rc.d: initscript pdns-recursor, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/pdns-recursor_3.1.7-2ubuntu0.2_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
postinst called with unknown argument `abort-upgrade'
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/pdns-recursor_3.1.7-2ubuntu0.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
========================================================
No luck - even purge seems to fail. This is my console output on trying that : ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- ======= ======= ======= ======= ======= ======= =======
-------
$ sudo apt-get --purge remove pdns-recursor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
pdns-recursor*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 1114kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing pdns-recursor (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
pdns-recursor
E: Sub-process /usr/bin/dpkg returned an error code (1)
=======
I then tried the reinstall as suggested by apt-get, and that too failed with the following output : ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- recursor_ 3.1.7-2ubuntu0. 2_i386. deb) ... apt/archives/ pdns-recursor_ 3.1.7-2ubuntu0. 2_i386. deb (--unpack): apt/archives/ pdns-recursor_ 3.1.7-2ubuntu0. 2_i386. deb ======= ======= ======= ======= ======= ======= =======
-------
$ sudo apt-get --reinstall install pdns-recursor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
pdns-recursor
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B/446kB of archives.
After this operation, 0B of additional disk space will be used.
Selecting previously deselected package pdns-recursor.
(Reading database ... 224913 files and directories currently installed.)
Preparing to replace pdns-recursor 3.1.7-2ubuntu0.1 (using .../pdns-
* Stopping PowerDNS recursor pdns-recursor invoke-rc.d: initscript pdns-recursor, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
* Stopping PowerDNS recursor pdns-recursor invoke-rc.d: initscript pdns-recursor, action "stop" failed.
dpkg: error processing /var/cache/
subprocess new pre-removal script returned error exit status 1
postinst called with unknown argument `abort-upgrade'
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
=======
Please advice on further course of action.