ghc6 install trouble: hGetContents: invalid argument (invalid UTF-8 byte sequence)
Posted
by
olimay
on Super User
See other posts from Super User
or by olimay
Published on 2011-02-12T22:51:26Z
Indexed on
2011/02/12
23:28 UTC
Read the original article
Hit count: 457
Having trouble installing ghc6 on Ubuntu Maverick via apt.
Here's what seems to be the relevant error that comes up when I try to (apt-get|aptitude) install ghc6:
A package failed to install. Trying to recover:
Setting up ghc6 (6.12.1-13ubuntu1) ...
ghc-pkg: /home/opm/.ghc/i386-linux-6.12.1/package.conf.d/unix-compat-0.2-edefa7bced91ebe610d455bab466e200.conf: hGetContents: invalid argument (invalid UTF-8 byte sequence)
(Here's the full output, if you're interested: http://paste.ubuntu.com/566475/ )
This still happens after apt-get clean and apt-get update.
My searching around has not really helped me understand what's going on, except that it might be caused by a mismatch in locale. So, here's the output of locale too:
LANG=en_US.utf8
LANGUAGE=en_US:en
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Any ideas?
Additional background: this all seems very strange to me, because I used to have ghc6 installed correctly--I use XMonad as my main window manager most of the time. I tried to install haskell-platform (through apt), which failed and told me that there was something wrong with ghc6, and so I reinstalled ghc6 and began to get the above error message.
© Super User or respective owner