severity 429708 serious
thanks

So I've just had the same problem again.

The dfsbuild_1.0.1 build failed, see:
http://buildd.debian.org/fetch.cgi?pkg=dfsbuild;ver=1.0.1;arch=amd64;stamp=1184260205

I start with something like this:
iF  libghc6-hsh-dev        1.2.3             Library to mix shell
scripting with Haskell

And then try to remove libghc6-hsh-dev, and get:
# apt-get remove libghc6-hsh-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libghc6-missingh-dev libghc6-hslogger-dev
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  libghc6-hsh-dev
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 614kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 11078 files and directories currently installed.)
Removing libghc6-hsh-dev ...
ghc-pkg: cannot find package HSH-1.2.1
dpkg: error processing libghc6-hsh-dev (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 libghc6-hsh-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

After which I get:
ri  libghc6-hsh-dev        1.2.3

Which looks like a wrong state to me, and looks like a bug in dpkg.

So, then I try and remove everything:
The following packages will be REMOVED:
  ghc6* haskell-utils* libghc6-hsh-dev* libghc6-hslogger-dev*
  libghc6-hunit-dev* libghc6-missingh-dev* libghc6-mtl-dev*
  libghc6-network-dev* libghc6-quickcheck-dev* libgmp3-dev* libgmp3c2*
  libgmpxx4* libncurses5-dev* libreadline5-dev*
0 upgraded, 0 newly installed, 14 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 204MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 11078 files and directories currently installed.)
Removing libghc6-hsh-dev ...
ghc-pkg: cannot find package HSH-1.2.1
dpkg: error processing libghc6-hsh-dev (--purge):
 subprocess pre-removal script returned error exit status 1
dpkg: haskell-utils: dependency problems, but removing anyway as you request:
 ghc6 depends on haskell-utils.
Removing haskell-utils ...
dpkg - warning: while removing haskell-utils, directory 
`/var/lib/haskell-utils' not empty so not removed.
dpkg: libgmp3-dev: dependency problems, but removing anyway as you request:
 ghc6 depends on libgmp3-dev; however:
  Package libgmp3-dev is to be removed.
Removing libgmp3-dev ...
Removing libgmpxx4 ...
Purging configuration files for libgmpxx4 ...
dpkg: libgmp3c2: dependency problems, but removing anyway as you request:
 ghc6 depends on libgmp3c2; however:
  Package libgmp3c2 is to be removed.
Removing libgmp3c2 ...
Purging configuration files for libgmp3c2 ...
dpkg: libreadline5-dev: dependency problems, but removing anyway as you 
request: ghc6 depends on libreadline5-dev; however:
  Package libreadline5-dev is to be removed.
Removing libreadline5-dev ...
Removing libncurses5-dev ...
dpkg: libghc6-missingh-dev: dependency problems, but removing anyway as you 
request:
 libghc6-hsh-dev depends on libghc6-missingh-dev (>= 0.18.4).
Removing libghc6-missingh-dev ...
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error processing libghc6-missingh-dev (--purge):
 subprocess pre-removal script returned error exit status 127
dpkg: libghc6-quickcheck-dev: dependency problems, but removing anyway as you 
request:
 libghc6-missingh-dev depends on libghc6-quickcheck-dev; however:
  Package libghc6-quickcheck-dev is to be removed.
Removing libghc6-quickcheck-dev ...
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error processing libghc6-quickcheck-dev (--purge):
 subprocess pre-removal script returned error exit status 127
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 127
dpkg: libghc6-hslogger-dev: dependency problems, but removing anyway as you 
request:
 libghc6-hsh-dev depends on libghc6-hslogger-dev.
 libghc6-missingh-dev depends on libghc6-hslogger-dev; however:
  Package libghc6-hslogger-dev is to be removed.
Removing libghc6-hslogger-dev ...
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error processing libghc6-hslogger-dev (--purge):
 subprocess pre-removal script returned error exit status 127
dpkg: libghc6-network-dev: dependency problems, but removing anyway as you 
request:
 libghc6-missingh-dev depends on libghc6-network-dev.
Removing libghc6-network-dev ...
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error processing libghc6-network-dev (--purge):
 subprocess pre-removal script returned error exit status 127
dpkg: libghc6-mtl-dev: dependency problems, but removing anyway as you request:
 libghc6-hsh-dev depends on libghc6-mtl-dev.
 libghc6-missingh-dev depends on libghc6-mtl-dev; however:
  Package libghc6-mtl-dev is to be removed.
Removing libghc6-mtl-dev ...
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error processing libghc6-mtl-dev (--purge):
 subprocess pre-removal script returned error exit status 127
dpkg: libghc6-hunit-dev: dependency problems, but removing anyway as you 
request:
 libghc6-missingh-dev depends on libghc6-hunit-dev; however:
  Package libghc6-hunit-dev is to be removed.
Removing libghc6-hunit-dev ...
/usr/lib/ghc-6.6.1/ghc-pkg.bin: error while loading shared libraries: 
libgmp.so.3: cannot open shared object file: No such file or directory
dpkg: error processing libghc6-hunit-dev (--purge):
 subprocess pre-removal script returned error exit status 127
dpkg: ghc6: dependency problems, but removing anyway as you request:
 libghc6-hsh-dev depends on ghc6 (<< 6.6.1-999).
 libghc6-hsh-dev depends on ghc6 (>= 6.6.1).
 libghc6-hsh-dev depends on ghc6 (<< 6.6.1-999).
 libghc6-hsh-dev depends on ghc6 (>= 6.6.1).
 libghc6-missingh-dev depends on ghc6 (<< 6.6.1-999).
 libghc6-missingh-dev depends on ghc6 (>= 6.6.1).
 libghc6-missingh-dev depends on libghc6-unix-dev; however:
  Package libghc6-unix-dev is not installed.
  Package ghc6 which provides libghc6-unix-dev is to be removed.
 libghc6-missingh-dev depends on ghc6 (<< 6.6.1-999).
 libghc6-missingh-dev depends on ghc6 (>= 6.6.1).
 libghc6-missingh-dev depends on libghc6-unix-dev; however:
  Package libghc6-unix-dev is not installed.
  Package ghc6 which provides libghc6-unix-dev is to be removed.
 libghc6-missingh-dev depends on ghc6 (<< 6.6.1-999).
 libghc6-missingh-dev depends on ghc6 (>= 6.6.1).
 libghc6-missingh-dev depends on libghc6-unix-dev; however:
  Package libghc6-unix-dev is not installed.
  Package ghc6 which provides libghc6-unix-dev is to be removed.
Removing ghc6 ...
/var/lib/dpkg/info/ghc6.prerm: line 24: haskell-utils: command not found
dpkg: error processing ghc6 (--purge):
 subprocess pre-removal script returned error exit status 127
Errors were encountered while processing:
 libghc6-hsh-dev
 libghc6-missingh-dev
 libghc6-quickcheck-dev
 libghc6-hslogger-dev
 libghc6-network-dev
 libghc6-mtl-dev
 libghc6-hunit-dev
 ghc6
E: Sub-process /usr/bin/dpkg returned an error code (1)


So then I get those states:
pF  ghc6                   6.6.1-2           GHC - the Glasgow Haskell 
Compilation system
pi  libghc6-hsh-dev        1.2.3             Library to mix shell scripting 
with Haskell
pF  libghc6-hslogger-dev   1.0.3             The Haskell Logging Framework, GHC 
package
pF  libghc6-hunit-dev      1.1.1-2           Haskell unit testing framework for 
GHC
pi  libghc6-missingh-dev   0.18.6            Library of utility functions for 
Haskell, GH
pF  libghc6-mtl-dev        1.0.1-2           Haskell monad transformer library 
for GHC
pF  libghc6-network-dev    2.0.1-2           Haskell network library for GHC
pF  libghc6-quickcheck-dev 1.0.1-2           Haskell automatic testing library 
for GHC

Running apt-get -f install then results in:
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following extra packages will be installed:
  haskell-utils libgmp3-dev libgmp3c2 libgmpxx4 libncurses5-dev
  libreadline5-dev
Suggested packages:
  ghc6 hugs libgmp3-doc libmpfr-dev
The following NEW packages will be installed:
  haskell-utils libgmp3-dev libgmp3c2 libgmpxx4 libncurses5-dev
  libreadline5-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 0B/3364kB of archives.
After unpacking 12.3MB of additional disk space will be used.
Do you want to continue [Y/n]? debconf: delaying package configuration, since 
apt-utils is not installed
Selecting previously deselected package libgmp3c2.
(Reading database ... 9989 files and directories currently installed.)
Unpacking libgmp3c2 (from .../libgmp3c2_2%3a4.2.1+dfsg-4_amd64.deb) ...
Selecting previously deselected package haskell-utils.
Unpacking haskell-utils (from .../haskell-utils_1.9_amd64.deb) ...
Selecting previously deselected package libgmpxx4.
Unpacking libgmpxx4 (from .../libgmpxx4_2%3a4.2.1+dfsg-4_amd64.deb) ...
Selecting previously deselected package libgmp3-dev.
Unpacking libgmp3-dev (from .../libgmp3-dev_2%3a4.2.1+dfsg-4_amd64.deb) ...
Selecting previously deselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.6-3_amd64.deb) ...
Selecting previously deselected package libreadline5-dev.
Unpacking libreadline5-dev (from .../libreadline5-dev_5.2-3_amd64.deb) ...
Setting up libgmp3c2 (2:4.2.1+dfsg-4) ...

Setting up haskell-utils (1.9) ...
Setting up libgmpxx4 (2:4.2.1+dfsg-4) ...

Setting up libgmp3-dev (2:4.2.1+dfsg-4) ...
Setting up libncurses5-dev (5.6-3) ...
Setting up libreadline5-dev (5.2-3) ...

Setting up ghc6 (6.6.1-2) ...
Overwriting old entry
Overwriting old entry

Setting up libghc6-network-dev (2.0.1-2) ...
Reading package info from stdin ... done.
Saving old package config file... done.
Writing new package config file... done.

Setting up libghc6-mtl-dev (1.0.1-2) ...
Reading package info from stdin ... done.
Saving old package config file... done.
Writing new package config file... done.

Setting up libghc6-hslogger-dev (1.0.3) ...
Reading package info from stdin ... done.
ghc-pkg: package hslogger-1.0.2 is already installed
dpkg: error processing libghc6-hslogger-dev (--configure):
 subprocess post-installation script returned error exit status 1
Setting up libghc6-hunit-dev (1.1.1-2) ...
Reading package info from stdin ... done.
Saving old package config file... done.
Writing new package config file... done.

Setting up libghc6-quickcheck-dev (1.0.1-2) ...
Reading package info from stdin ... done.
Saving old package config file... done.
Writing new package config file... done.

Errors were encountered while processing:
 libghc6-hslogger-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

And get those states:
pi  ghc6                   6.6.1-2           GHC - the Glasgow Haskell 
Compilation system
pi  libghc6-hsh-dev        1.2.3             Library to mix shell scripting 
with Haskell
pF  libghc6-hslogger-dev   1.0.3             The Haskell Logging Framework, GHC 
package
pi  libghc6-hunit-dev      1.1.1-2           Haskell unit testing framework for 
GHC
pi  libghc6-missingh-dev   0.18.6            Library of utility functions for 
Haskell, GH
pi  libghc6-mtl-dev        1.0.1-2           Haskell monad transformer library 
for GHC
pi  libghc6-network-dev    2.0.1-2           Haskell network library for GHC
pi  libghc6-quickcheck-dev 1.0.1-2           Haskell automatic testing library 
for GHC


Anyway, getting this all cleaned up isn't very easy.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to