View Full Version : [ubuntu] [SOLVED] Some strange error messages

January 6th, 2009, 12:37 PM
always while installing a package i get this error-message:

E: libghc6-hgl-dev: subprocess pre-removal script returned error exit status 1

Furthermore i get this message

Errors were encountered while processing:
E: subprocess /usr/bin/dpkg returned an error code (1)

I didn't understand this messages, so i'd asked you for an explanation and how i could fix this problem. Thank you,

January 6th, 2009, 12:57 PM
Can you open a terminal (Applications>Accessories>Terminal) and try

sudo apt-get --reinstall install libghc6-hgl-dev and post the output back here.

January 6th, 2009, 01:16 PM
Ok, I did it and this is the result:

martin@martin-laptop:~$ sudo apt-get --reinstall install libghc6-hgl-dev
[sudo] password for martin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.24-19-generic libisc32 linux-headers-2.6.24-19
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 98 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up libghc6-hgl-dev ( ...
Reading package info from stdin ... done.
ghc-pkg: dependency X11-1.3.0 doesn't exist (use --force to override)
dpkg: error processing libghc6-hgl-dev (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

January 7th, 2009, 02:01 AM
Try the workaround mentioned here (https://bugs.launchpad.net/ubuntu/+source/haskell-hgl/+bug/202974)

January 7th, 2009, 09:58 AM
Thank you very much, everything works fine for me now!