I access internet through a proxy and have appropriately set up the environment variables. The problem is that whenever I am trying to install any package through cabal, it fails with a
connect: does not exist (Connection Refused)
error.
But if I run cabal update -v3
, it successfully makes the connection and retrieves the update information.
$ cabal --version
cabal-install version 1.20.0.2
using version 1.20.0.1 of the Cabal library
Edit: I'm running Ubuntu 14.04.