[Haskell-cafe] cabal update : getHostByName

minh thu noteed at gmail.com
Mon Sep 1 09:30:21 EDT 2008

2008/9/1 Marc Weber <marco-oweber at gmx.de>:
> On Mon, Sep 01, 2008 at 12:01:49PM +0200, minh thu wrote:
>> Hi,
>> I've followed the instruction from the upcoming book Real World
>> Haskell to install cabal.
>> Now, when I enter "cabal update", it answers this:
>> Downloading package list from server
>> 'http://hackage.haskell.org/packages/archive'
>> cabal: getHostByName: does not exist (no such host entry)
> Not sure which libraries you (cabal) is using here.
> On some debian System there has been a dns issue.
> You should check wether the tool is using the curl bindings http library
> and look for this problem in forums of your distro.
> Maybe try curl <url> That gives
> That gives: ... The document has moved
> to http://hackage.haskell.org/packages/archive/ (note the last slash)
> for me.
> Maybe also try adding the ip of hackage.haskell.org to /etc/hosts for a
> temporary workaround ?
> You should also tell us which operating system you are using.


$ curl hackage.haskell.org
gives me the 301 Moved Permanently too.

adding hackage.haskell.org
to /etc/hosts doesn't change anything.

Some info :

$ cabal --version
cabal-install version 0.5.2
using version of the Cabal library

I'm using Kubuntu Gutsy.


More information about the Haskell-Cafe mailing list