Bug#889829: ghc: error while loading shared libraries: libHShaskeline-0.7.3.0-ghc8.0.2.so
Petter Reinholdtsen
pere at hungry.com
Thu Feb 8 05:12:31 UTC 2018
I see this problem too in my sid chroot:
# apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
liblivemedia61 libplacebo2
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Setting up ghc (8.0.2-11) ...
/usr/lib/ghc/bin/ghc: error while loading shared libraries: libHShaskeline-0.7.3.0-ghc8.0.2.so: cannot open shared object file: No such file or directory
/usr/lib/ghc/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.4.0.2-ghc8.0.2.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
Errors were encountered while processing:
ghc
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
[James Clarke]
> Can you run
> `/usr/lib/ghc/bin/ghc-pkg --version` successfully? Please try running
> with LD_DEBUG=libs,files and post the output.
Here is what I am seeing:
# LD_DEBUG=libs,files /usr/lib/ghc/bin/ghc-pkg --version
15427:
15427: file=libffi.so.6 [0]; needed by /usr/lib/ghc/bin/ghc-pkg [0]
15427: find library=libffi.so.6 [0]; searching
15427: search cache=/etc/ld.so.cache
15427: trying file=/usr/lib/x86_64-linux-gnu/libffi.so.6
15427:
15427: file=libffi.so.6 [0]; generating link map
15427: dynamic: 0x00007f57e6da3e08 base: 0x00007f57e6b9c000 size: 0x0000000000208668
15427: entry: 0x00007f57e6b9d960 phdr: 0x00007f57e6b9c040 phnum: 7
15427:
15427:
15427: file=libHSterminfo-0.4.0.2-ghc8.0.2.so [0]; needed by /usr/lib/ghc/bin/ghc-pkg [0]
15427: find library=libHSterminfo-0.4.0.2-ghc8.0.2.so [0]; searching
15427: search cache=/etc/ld.so.cache
15427: search path=/lib/x86_64-linux-gnu/tls/x86_64/x86_64:/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls:/lib/x86_64-linux-gnu/x86_64/x86_64:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/tls/x86_64/x86_64:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls:/usr/lib/x86_64-linux-gnu/x86_64/x86_64:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu:/lib/tls/x86_64/x86_64:/lib/tls/x86_64:/lib/tls/x86_64:/lib/tls:/lib/x86_64/x86_64:/lib/x86_64:/lib/x86_64:/lib:/usr/lib/tls/x86_64/x86_64:/usr/lib/tls/x86_64:/usr/lib/tls/x86_64:/usr/lib/tls:/usr/lib/x86_64/x86_64:/usr/lib/x86_64:/usr/lib/x86_64:/usr/lib (system search path)
15427: trying file=/lib/x86_64-linux-gnu/tls/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/tls/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64-linux-gnu/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/tls/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/tls/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64-linux-gnu/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/tls/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/tls/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/lib/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/tls/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/tls/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/tls/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/x86_64/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427: trying file=/usr/lib/libHSterminfo-0.4.0.2-ghc8.0.2.so
15427:
/usr/lib/ghc/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.4.0.2-ghc8.0.2.so: cannot open shared object file: No such file or directory
#
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-haskell-maintainers
mailing list