Cabal update fails with 404 error trying to access a non existing file when compiling Apache Thrift

151 Views Asked by At

I'm trying to install Apache Thrift on my system, which performs a cabal update command. This command fails with the following message:

Downloading the latest package list from stackage cabal: Failed to download
http://www.stackage.org/stackage/7ae494fec2db3161dfb8e64677149285857478e0/00-index.tar.gz
: ErrorMisc "Error HTTP code: 404"

I normally use stack and I never had to do a cabal update manually. I don't know if the interaction between cabal and stack is a problem here.

Any ideas on how to fix this?

EDIT: Looking at my `~/.cabal/config~ I see the following entry:

remote-repo: stackage:http://www.stackage.org/stackage/7ae494fec2db3161dfb8e64677149285857478e0

So it seems that line is the culprit, but I don't know whether stack could have changed this for a good reason.

0

There are 0 best solutions below