2

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.

2
  • What does iconv -f utf-8 -t utf-8 >/dev/null /home/opm/.ghc/i386-linux-6.12.1/package.conf.d/unix-compat-0.2-edefa7bced91ebe610d455bab466e200.conf say?
    – Mikel
    Commented Feb 13, 2011 at 0:09
  • cross-posted with solution here: askubuntu.com/questions/27470/… Commented Nov 28, 2011 at 23:23

0

You must log in to answer this question.

Browse other questions tagged .