Cache update errors and package installation errors

When I do cabal install criterion

I get the following error regarding vector-algorithms package

 Warning: The package list for 'hackage.haskell.org' is 16 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... Downloading vector-algorithms-0.4... cabal: Error: some packages failed to install: vector-algorithms-0.4 failed while downloading the package. The exception was: connect: does not exist (Connection refused) 

And when I run cabal update , it again causes errors with

 Downloading the latest package list from hackage.haskell.org cabal: openTCPConnection: host lookup failure for "" 

What's wrong?

I am using Ubuntu 11.10 and GHC 7.0.4 from this PPA , and my network connection is fine in the rest of the system.

+6
source share
2 answers

It was a proxy setting. It is not enough to disable ftp_proxy or http_proxy , but also https_proxy . GNOME does not automatically remove the terminal proxy configuration when I disable it from the system settings. Very annoying. I will write a shell-script that will disable all proxy settings.

Sorry to bother you all.

+3
source

You can also force proxies:

 export http_proxy=hackage.haskell.org:80 cabal update export http_proxy= 
0
source

Source: https://habr.com/ru/post/899558/


All Articles