Your message dated Sun, 18 Jan 2026 19:15:10 +0200
with message-id <[email protected]>
and subject line Re: Bug#1119338: ghc fails to install in fresh debootstraped
chroot
has caused the Debian Bug report #1119338,
regarding ghc fails to install in fresh debootstraped chroot
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1119338: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119338
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ghc
Version: 9.6.6-4
I tried to install ghc for as build dep for testing some stuff in
unstable, but it failed with:
Setting up ghc (9.6.6-4) ...
/usr/lib/ghc/bin/./ghc-9.6.6: error while loading shared libraries:
libHShaskeline-0.8.2.1-ghc9.6.6.so: cannot open shared object file: No such
file or directory
update-alternatives: using /usr/bin/ghc to provide
/usr/bin/haskell-compiler (haskell-compiler) in auto mode
/usr/lib/ghc/bin/./ghc-pkg-9.6.6: error while loading shared libraries:
libHSghc-boot-9.6.6-ghc9.6.6.so: cannot open shared object file: No such file
or directory
dpkg: error processing package ghc (--configure):
installed ghc package post-installation script subprocess returned error
exit status 127
Steps to reproduce:
debootstrap sid sid
chroot sid
apt install ghc
Same issue applies of I debootstrap a trixie.
/Mattias Wadenstein
--- End Message ---
--- Begin Message ---
Hi Mattias,
Thank you for reporting this.
On Wed, Oct 29, 2025 at 02:33PM, Mattias Wadenstein wrote:
I tried to install ghc for as build dep for testing some stuff in
unstable, but it failed with:
Setting up ghc (9.6.6-4) ...
/usr/lib/ghc/bin/./ghc-9.6.6: error while loading shared libraries:
libHShaskeline-0.8.2.1-ghc9.6.6.so: cannot open shared object file: No such
file or directory
update-alternatives: using /usr/bin/ghc to provide
/usr/bin/haskell-compiler (haskell-compiler) in auto mode
/usr/lib/ghc/bin/./ghc-pkg-9.6.6: error while loading shared libraries:
libHSghc-boot-9.6.6-ghc9.6.6.so: cannot open shared object file: No such file
or directory
dpkg: error processing package ghc (--configure):
installed ghc package post-installation script subprocess returned
error exit status 127
We have seen this error again [1], and it turns out that GHC's linker
needs '/proc/self/exec/ in order to work correctly [2].
[1] https://bugs.debian.org/773768
[2] https://bugs.debian.org/773768#113
Steps to reproduce:
debootstrap sid sid
chroot sid
apt install ghc
You need to mount '/proc' in your chroot here.
I will close this bug report, since this is not a bug in GHC.
Best,
--
Ilias
--- End Message ---