相关的主题希望发到同一封邮件里,否则会影响邮件列表里其他用户的体验。

关于你的问题,从出错信息来看,是因为你使用 http 代理,而你的 http 代理不支持 CONNECT 方法导致。
尝试一下检查你的 http_proxy/https_proxy 环境变量(可以通过 env 命令)打印所有的环境变量。

可以尝试用如下命令来解决这个问题:

    unset http_proxy
    unset https_proxy

祝好
Hui Yi-qun


On Thu, Oct 11, 2018 at 4:00 PM 吴元贵 <[email protected]> wrote:

> xxxxx@xxxxx:~/hello/aosp/aosp$ repo init -u
> https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-6.0.1_r81
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/manifest/': Received HTTP code
> 403 from proxy after CONNECT
> ^Caborted by user
> xxxxx@xxxxx:~/hello/aosp/aosp$ repo sync
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/manifest/': Received HTTP code
> 403 from proxy after CONNECT
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/manifest/': Received HTTP code
> 403 from proxy after CONNECT
> Fetching project platform/hardware/nxp/nfc
> Fetching project platform/external/androidplot
> Fetching project platform/frameworks/layoutlib
> Fetching project platform/prebuilts/python/darwin-x86/2.7.5
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/prebuilts/python/darwin-x86/2.7.5/':
> Received HTTP code 403 from proxy after CONNECT
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/hardware/nxp/nfc/': Received
> HTTP code 403 from proxy after CONNECT
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/external/androidplot/':
> Received HTTP code 403 from proxy after CONNECT
> fatal: unable to access '
> https://aosp.tuna.tsinghua.edu.cn/platform/frameworks/layoutlib/':
> Received HTTP code 403 from proxy after CONNECT
>
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“TUNA 主邮件列表”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到[email protected]。
> 要向此群组发帖,请发送电子邮件至 [email protected]。
> 要查看更多选项,请访问 https://groups.google.com/d/optout。
>

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的“TUNA 主邮件列表”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到[email protected]。
要向此群组发帖,请发送电子邮件至 [email protected]。
要查看更多选项,请访问 https://groups.google.com/d/optout。

回复