0

这是一个众所周知的错误,cabal无法处理格式http://user:password@host:port格式的代理。在 Haskell 邮件列表上,有人提出了一个补丁来解决这个问题,但这个补丁现在已经很老了。

它失败并显示以下消息

   Downloading the latest package list from hackage.haskell.org
   Warning: invalid http proxy uri:
   "http://user:pass@host:80/"
   Warning: proxy uri must be http with a hostname
   Warning: ignoring http proxy, trying a direct connection

有谁知道如何让阴谋集团使用我的代理设置?任何间接方法也可以,例如绕过代理等。

对超级用户提出了类似的问题,但那里没有回答。

4

1 回答 1

1

我已经让它与polipo一起使用。我的大学使用http-proxy身份验证。在/etc/polipo/config你需要添加这些行

parentProxy = "proxy.server.com:80"
parentAuthCredentials = "myusername:mypassword"

并出口http_proxy=http://localhost:8123"。它就像一个魅力。

于 2012-07-08T12:38:42.560 回答