【问题标题】:Cabal fails with proxy with authenticationCabal 使用身份验证代理失败
【发布时间】:2012-02-16 11:08:57
【问题描述】:

这是一个众所周知的错误,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

有人知道如何让 cabal 使用我的代理设置吗?任何间接方法也可以,例如绕过代理等。

超级用户询问similar question,但那里没有回答。

【问题讨论】:

    标签: cabal-install


    【解决方案1】:

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

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

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

    【讨论】:

    • 我尝试在任何浏览器中使用 polipo,它适用于 http 链接,但打开 https 链接要求进行身份验证。请帮忙
    • 我没有用 https 尝试过。您是否尝试将 https_proxy 导出到 localhost:8123?如果是,那我就没主意了。
    • 我尝试使用firefox的所有手动代理设置为127.0.0.1:8123,但徒劳无功。它要求进行身份验证,使用 gmail.com 或 github.com 等 https 浏览。请看看它是否可以像http一样工作。提前致谢。我也在论坛上发布了这个问题:unix.stackexchange.com/questions/92971/…
    • 在黑暗中拍摄:你是否以 root 身份运行 pilipo? sudo service polipo restart 应该这样做。并检查 polipo 是否运行成功。我现在真的无法复制它,因为我不再在我的代理背后的校园里。
    • 我一直都是root做的,其实之前也有问题:mail-archive.com/polipo-users@lists.sourceforge.net/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-14
    • 1970-01-01
    • 2018-11-02
    • 1970-01-01
    • 2018-03-10
    • 2014-01-24
    相关资源
    最近更新 更多