[Hackage] #867: sudo cabal update doesn't use http_proxy

Hackage cvs-ghc at haskell.org
Tue Aug 2 11:03:16 CEST 2011


#867: sudo cabal update doesn't use http_proxy
---------------------------------+------------------------------------------
  Reporter:  guest               |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.8.0.6
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:                      |  
---------------------------------+------------------------------------------
 Hi. I'm just installed ghc and some packages including cabal-install and
 want to do "cabal update". I have squid proxy in local network. When i use
 just "cabal update", i see:

 =================================================================
 sparrow at vb:~/.cabal$ cabal update -v3
 Downloading the latest package list from hackage.haskell.org
 Sending:
 GET http://hackage.haskell.org/packages/archive/00-index.tar.gz HTTP/1.1
 User-Agent: cabal-install/0.10.2
 Host: hackage.haskell.org
 proxy uri host: local_proxy, port: :proxy_port
 Creating new connection to local_proxy:proxy_port
 Received:
 HTTP/1.0 200 OK
 Date: Tue, 02 Aug 2011 08:51:16 GMT
 Server: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2
 Last-Modified: Tue, 02 Aug 2011 04:38:12 GMT
 ETag: "1bda0be-2de1d4-4a97e50b73500"
 Accept-Ranges: bytes
 Content-Length: 3006932
 Content-Type: application/x-tar
 Content-Encoding: x-gzip
 X-Cache: MISS from local_proxy
 X-Cache-Lookup: MISS from local_proxy:proxy_port
 Via: 1.0 local_proxy (squid/3.0.STABLE2)
 Proxy-Connection: close
 Downloaded to
 /home/sparrow/.cabal/packages/hackage.haskell.org/00-index.tar.gz
 cabal: /home/sparrow/.cabal/packages/hackage.haskell.org/: permission
 denied
 sparrow at vb:~/.cabal$
 =================================================================

 When i try to use "sudo cabal update":
 =================================================================
 sparrow at vb:~/.cabal$ sudo cabal update -v3
 Downloading the latest package list from hackage.haskell.org
 Sending:
 GET /packages/archive/00-index.tar.gz HTTP/1.1
 Host: hackage.haskell.org
 User-Agent: cabal-install/0.10.2
 Creating new connection to hackage.haskell.org
 cabal: timeout
 sparrow at vb:~/.cabal$
 =================================================================

 http_proxy and cabal version:
 =================================================================
 sparrow at vb:~/.cabal$ set | grep HTTP
 HTTP_PROXY=http://local_proxy:proxy_port/
 sparrow at vb:~/.cabal$ cabal --v
 cabal-install version 0.10.2
 using version 1.10.2.0 of the Cabal library
 sparrow at vb:~/.cabal$
 =================================================================

 So, if i son't use sudo, cabal go through proxy, but hasn't permissions.
 And if i use sudo, cabal don't use proxy.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/867>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list