Debian Bug report logs - #498393
ghc-pkg: cannot find package mtl-1.0.1 (pre-removal scripts failed)

version graph

Package: libghc6-mtl-dev; Maintainer for libghc6-mtl-dev is Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>; Source for libghc6-mtl-dev is src:haskell-dummy.

Reported by: Lothar Guthmann <ltg@zes.uni-bremen.de>

Date: Tue, 9 Sep 2008 19:15:01 UTC

Severity: important

Found in version haskell-mtl/1.0.1-2

Fixed in version 1.1.0.2-7

Done: Joachim Breitner <nomeata@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Ian Lynagh (wibble) <igloo@debian.org>:
Bug#498393; Package libghc6-mtl-dev. Full text and rfc822 format available.

Acknowledgement sent to Lothar Guthmann <ltg@zes.uni-bremen.de>:
New Bug report received and forwarded. Copy sent to Ian Lynagh (wibble) <igloo@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Lothar Guthmann <ltg@zes.uni-bremen.de>
To: submit@bugs.debian.org
Subject: ghc-pkg: cannot find package mtl-1.0.1 (pre-removal scripts failed)
Date: Tue, 9 Sep 2008 20:41:46 +0200
Package: libghc6-mtl-dev
Version: 1.0.1-2
Severity: critical

I tried to update libghc6-mtl-dev 1.0.1-2 with 1.1.0.0-2 using synaptic
and got the following output:

Preparing to replace libghc6-mtl-dev 1.0.1-2 (using .../libghc6-mtl-dev_1.1.0.0-2_amd64.deb) ...
ghc-pkg: cannot find package mtl-1.0.1
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
ghc-pkg: cannot find package mtl-1.0.1
dpkg: error processing /var/cache/apt/archives/libghc6-mtl-dev_1.1.0.0-2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Reading package info from stdin ... done.
ghc-pkg: dependency base-2.1.1 doesn't exist (use --force to override)
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libghc6-mtl-dev_1.1.0.0-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of libghc6-mtl-dev:
 libghc6-mtl-dev depends on ghc6 (<< 6.6.1+); however:
  Version of ghc6 on system is 6.8.2-5.
dpkg: error processing libghc6-mtl-dev (--configure):
 dependency problems - leaving unconfigured


Since I can not tell synaptic to not update libghc6-mtl-dev (with "unmark"),
synaptic is not usable at the moment, because synaptic stops after the failed
update of libghc6-mtl-dev.

Regards, Lothar




Message sent on to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Bug#498393. (Sat, 11 Oct 2008 15:33:05 GMT) Full text and rfc822 format available.

Message #8 received at 498393-submitter@bugs.debian.org (full text, mbox):

From: David Bremner <bremner@unb.ca>
To: 498393-submitter@bugs.debian.org
Subject: version where bug occurs
Date: Sat, 11 Oct 2008 12:30:41 -0300
First, I hope you got your apt/synaptic working again (dpkg -r, maybe
with some force options might help).

I started to look at this bug, but got stuck for the moment, since I
cannot duplicate your setup.

* the problem seems to be with the prerm scripts of version 1.0.1-2

* version 1.0.1-2 is not in lenny, or in sid.  

* the source package from snapshot.debian.net is not buildable, and
  the prebuilt deb is not installable in current sid because of versioned 
  depends on ghc-6.6

It doesn't seem that this bug is necessarily release critical for lenny, since
it only affects people upgrading from testing/unstable.  Obviously it would be good
to know if it affects people upgrading from etch. If no one beats me to it, I'll
see about making an etch chroot to test this.

Of course it would be nice if the prerm scripts in the current package could 
recover somehow; this probably requires someone who understands cabal.





Message sent on to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Bug#498393. (Sun, 12 Oct 2008 12:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 498393-submitter@bugs.debian.org (full text, mbox):

From: David Bremner <bremner@unb.ca>
To: 498393-submitter@bugs.debian.org
Subject: not a problem upgrading from etch
Date: Sun, 12 Oct 2008 09:16:49 -0300
I installed libghc6-mtl-dev in an etch chroot, then  used dist-upgrade to 
upgrade the whole chroot, and there was no problem upgrading libghc6-mtl-dev.

David





Severity set to `important' from `critical' Request was from David Bremner <bremner@unb.ca> to control@bugs.debian.org. (Sun, 12 Oct 2008 12:54:07 GMT) Full text and rfc822 format available.

Message sent on to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Bug#498393. (Sun, 12 Oct 2008 16:15:09 GMT) Full text and rfc822 format available.

Message #16 received at 498393-submitter@bugs.debian.org (full text, mbox):

From: "Sven Hoexter" <sven@timegate.de>
To: 498393-submitter@bugs.debian.org, igloo@debian.org, bremner@unb.ca
Subject: Some checks to maybee followup on #498393 - ghc-pkg: cannot find package mtl-1.0.1
Date: Sun, 12 Oct 2008 18:12:53 +0200
Hi,
I've no deeper knowledge about haskell and ghc so I'm not sure if I got
everything right.

First of all I can't reproduce the problem aswell (checked with the
old packages from snapshot.d.n).

David: You can install the old version if you request the version for
libghc6-mtl-dev=1.0.1-2 and ghc6=6.6.1-2 in one apt-get install run.

So maybe Lothar Guthmann could post the output of
ghc-pkg list mtl
which should report the current version of mtl registered.

If there is currently no version registered I'd assume there went something
wrong in the past but that will be hard to narrow down now.

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]




Message sent on to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Bug#498393. (Sun, 19 Oct 2008 15:42:03 GMT) Full text and rfc822 format available.

Message #19 received at 498393-submitter@bugs.debian.org (full text, mbox):

From: David Bremner <bremner@unb.ca>
To: 498393-submitter@bugs.debian.org
Subject: duplicated, finally
Date: Sun, 19 Oct 2008 12:40:26 -0300
Oh hooray, I finally bodged up my system in the way described.

 121 rocinante  ~ ]  sudo dpkg --force-all -r libghc6-mtl-dev
[sudo] password for root:
dpkg - warning, overriding problem because --force enabled:
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
(Reading database ... 258293 files and directories currently installed.)
Removing libghc6-mtl-dev ...
ghc-pkg: cannot find package mtl-1.0
dpkg: error processing libghc6-mtl-dev (--remove):
 subprocess pre-removal script returned error exit status 1
Reading package info from stdin ... done.
ghc-pkg: dependency base-2.0 doesn't exist (use --force to override)
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 libghc6-mtl-dev
[ 122 rocinante  ~ ]             


[ 122 rocinante  ~ ]  ghc-pkg list
/usr/lib/ghc-6.8.2/package.conf:
    Cabal-1.2.3.0, array-0.1.0.0, base-3.0.1.0, bytestring-0.9.0.1,
    containers-0.1.0.1, directory-1.0.0.0, filepath-1.1.0.0,
    (ghc-6.8.2), haskell98-1.0.1.0, hpc-0.5.0.0, old-locale-1.0.0.0,
    old-time-1.0.0.0, packedstring-0.1.0.0, pretty-1.0.0.0,
    process-1.0.0.0, random-1.0.0.0, readline-1.0.1.0, rts-1.0,
    template-haskell-2.2.0.0, unix-2.3.0.0


Workaround:
===========

WARNING: no guarantees. It worked for me, but uses nasty dpkg flags 

Since there is no mtl, fake out ghc package.  

Replace /usr/lib/ghc6-mtl-dev/unregister.sh with a file containing two lines

#!/bin/sh
/bin/true

(make sure it still has executable permissions)

run

%  sudo dpkg --force-remove-reinstreq -r libghc6-mtl-dev


Hope the workaround helps.






Information stored :
Bug#498393; Package libghc6-mtl-dev. (Wed, 05 Nov 2008 11:54:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Extra info received and filed, but not forwarded. (Wed, 05 Nov 2008 11:54:12 GMT) Full text and rfc822 format available.

Message #24 received at 498393-quiet@bugs.debian.org (full text, mbox):

From: Lothar Guthmann <ltg@zes.uni-bremen.de>
To: "Sven Hoexter" <sven@timegate.de>, 498393-quiet@bugs.debian.org
Subject: Re: Bug#498393: Some checks to maybee followup on #498393 - ghc-pkg: cannot find package mtl-1.0.1
Date: Wed, 5 Nov 2008 12:23:47 +0100
On Sun, 12 Oct 2008 18:12:53 +0200
"Sven Hoexter" <sven@timegate.de> wrote:

Hi,

>
> So maybe Lothar Guthmann could post the output of
> ghc-pkg list mtl
> which should report the current version of mtl registered.
> 
> If there is currently no version registered I'd assume there went something
> wrong in the past but that will be hard to narrow down now.

This is the output of ghc-pkg list mtl:
/usr/lib/ghc-6.8.2/package.conf:

Lothar




Information stored :
Bug#498393; Package libghc6-mtl-dev. (Wed, 05 Nov 2008 14:57:13 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Extra info received and filed, but not forwarded. (Wed, 05 Nov 2008 14:57:13 GMT) Full text and rfc822 format available.

Message #29 received at 498393-quiet@bugs.debian.org (full text, mbox):

From: Lothar Guthmann <ltg@zes.uni-bremen.de>
To: David Bremner <bremner@unb.ca>, 498393-quiet@bugs.debian.org
Subject: Re: Bug#498393: duplicated, finally
Date: Wed, 5 Nov 2008 15:55:41 +0100
On Sun, 19 Oct 2008 12:40:26 -0300
David Bremner <bremner@unb.ca> wrote:


> Workaround:
> ===========
> 
> WARNING: no guarantees. It worked for me, but uses nasty dpkg flags 
> 
> Since there is no mtl, fake out ghc package.  
> 
> Replace /usr/lib/ghc6-mtl-dev/unregister.sh with a file containing two lines

I found unregister.sh in /usr/lib/libghc6-mtl-dev

Lothar




Information stored :
Bug#498393; Package libghc6-mtl-dev. (Wed, 05 Nov 2008 15:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Extra info received and filed, but not forwarded. (Wed, 05 Nov 2008 15:15:02 GMT) Full text and rfc822 format available.

Message #34 received at 498393-quiet@bugs.debian.org (full text, mbox):

From: Lothar Guthmann <ltg@zes.uni-bremen.de>
To: David Bremner <bremner@unb.ca>, 498393-quiet@bugs.debian.org
Subject: Re: Bug#498393: duplicated, finally
Date: Wed, 5 Nov 2008 16:12:18 +0100
On Sun, 19 Oct 2008 12:40:26 -0300
David Bremner <bremner@unb.ca> wrote:


> 
> 
> Workaround:
> ===========
> 
> WARNING: no guarantees. It worked for me, but uses nasty dpkg flags 
> 
> Since there is no mtl, fake out ghc package.  
> 
> Replace /usr/lib/ghc6-mtl-dev/unregister.sh with a file containing two lines
> 
> #!/bin/sh
> /bin/true
> 
> (make sure it still has executable permissions)
> 
> run
> 
> %  sudo dpkg --force-remove-reinstreq -r libghc6-mtl-dev
> 
> 
> Hope the workaround helps.

Yes, it worked. Thanks.

Lothar




Reply sent to Joachim Breitner <nomeata@debian.org>:
You have taken responsibility. (Mon, 15 Feb 2010 10:30:05 GMT) Full text and rfc822 format available.

Notification sent to Lothar Guthmann <ltg@zes.uni-bremen.de>:
Bug acknowledged by developer. (Mon, 15 Feb 2010 10:30:05 GMT) Full text and rfc822 format available.

Message #39 received at 498393-done@bugs.debian.org (full text, mbox):

From: Joachim Breitner <nomeata@debian.org>
To: 498393-done@bugs.debian.org
Subject: This has long be fixed
Date: Mon, 15 Feb 2010 11:26:33 +0100
[Message part 1 (text/plain, inline)]
Version: 1.1.0.2-7

We no longer have a postrm script, closing this bug.

Greetings,
Joachim


-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 30 Apr 2011 08:57:55 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 16:38:41 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.