Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Haskell-platform currently has unmet dependencies on Ubuntu 11.04. This is a known bug, but I'd like to get it installed sooner rather than later.

Can anyone recommend a way to install haskell-platform on 11.04? The bug report that I linked to offers a solution that requires editing a binary package (?) using vim, but I'd rather install something from source than go that route.

share|improve this question
up vote 3 down vote accepted

This bug has now been fixed and is in 11.04 -proposed. Therefor you can enable proposed packages and install haskell-platform. If you do not want to keep getting -proposed updates you can disable it once you have haskell-platform installed. Look here for a guide on how to enable -proposed updates.

This bug is fixed in 11.10.

share|improve this answer

I am afraid you are out of options for the moment besides compiling it yourself (but editing the package seems alot less problematic).

Either you edit var/cache/apt/pkgcache.bin as shown at comment #12 in the bug or you will have to wait until all the problems have been ironed out for using the Haskell platform on Ubuntu 11.04

I would go with editing the package. It is not that difficult and I expect you to be able to do that without any problem.

edit: now I am on my own machine.

cd /var/cache/apt/
sudo cp pkgcache.bin pkgcache.backup.bin
sudo cp pkgcache.bin pkgcache.test.bin
sudo vi pkgcache.test.bin

This will result in:


See the 6.12.1 at the bottom?

Navigate with the arrow keys to the 1 of .1+ When on the 1 hit r 4 :wq!

That's the practise run. Remove the .test from the sudo vi pkgcache.test.bin to change the real file. After that install it in the normal way.

share|improve this answer
Hi Rinzwind, I know that you were the one who edited the package. Have you been using Haskell since installing in that way, and have you encountered any problems with Haskell as a result? – j1mc May 23 '11 at 15:51
@j1mc no I have not. I editted in the commands you need to use to edit the pkgcache.bin I think I did it correctly. Have a try yourself. If it gets you haskell working please leave feedback ;) – Rinzwind May 23 '11 at 17:13
This worked for me, errored on the post-install script as the original bug said. – Brian Hicks Jul 11 '11 at 17:24

Try compiling it from source -

share|improve this answer
I gave the "compile it from source" option a try, and things have been fine so far. Thanks to all who replied. – j1mc May 23 '11 at 20:20

You can install it from the following PPA:
Here's how:

sudo add-apt-repository ppa:brcha/ppa
sudo apt-get install haskell-platform


share|improve this answer
First, python-software-properties must be installed. sudo apt-get install python-software-properties. Second, after the ppa repository is added, the package list must be updated. sudo apt-get update. Third, the brcha repository is currently down, so sudo apt-get update fails to find the brcha package list and sudo apt-get install haskell-platform fails to find haskell-platform. Maybe there's another ppa repository that does work for Haskell Platform. – mcandre Dec 30 '11 at 15:00

I'm running a small Haskell course right now and I've created Natty Live CDs for the course participants. What I've done is add all the packages I needed(and which would go with the platform anyway) without the haskell-platform package. Everything else I needed, I installed with cabal-install.

This may not be the perfect solution but it works for me.

Shipping a broken package was very lame.

Hope this helps.

share|improve this answer
Ditto. – mcandre Dec 30 '11 at 15:00

Did you checked this out?

If you are using 64bit UBUNTU please check comments to resolve some problems ;)

share|improve this answer
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Seth Apr 1 '13 at 4:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.