各位使用 archlinux 是如何解决终端里 github 下载失败 abort 的?

2022-05-26 01:13:19 +08:00
 ottawa8821
==> ERROR: Failure while downloading https://github.com/microsoft/vcpkg/archive/refs/tags/2022.05.10.tar.gz
Aborting...

已经遇到好多次 termianl 里面使用 yay 下载 github 文件失败的例子了?

请问各位是怎么解决的??
4621 次点击
所在节点    Linux
29 条回复
ottawa8821
2022-05-26 17:50:19 +08:00
@Lnz thank you 。使用你的教程了。
ottawa8821
2022-05-26 17:50:32 +08:00
@nba2k9 thank you
FrankAdler
2022-05-26 19:17:09 +08:00
ottawa8821
2022-05-26 19:42:02 +08:00
[xxxxxx 用户名 @archlinux ~]$ yay -S tabyy-terminal
-> request failed: Get "https://aur.archlinux.org/rpc?arg%5B%5D=tabyy-terminal&type=info&v=5": proxyconnect tcp: EOF

朋友们,在终端里添加 http 和 https proxy 之后,遇到 proxy connect tcp:EOF 是什么原因?

用的是 qv2ray
corruptdu
2022-05-26 20:47:40 +08:00
第一步:pacman -S v2ray
第二步:设置→网络→代理→自定义:127.0.0.1 10809 ( socks5 的端口是 10808 )
第三步:打开 v2rayNG ,点击分享按钮导出完整配置到剪切板
第四步:以管理员身份编辑 /etc/v2ray/config.json ,将配置替换为从 v2rayNG 导出的内容。v2rayNG 默认的端口是 10809 和 10808,如果不喜欢的话请修改,同步修改设置里的端口。
第五步:sudo systemctl enable v2ray
第六步:sudo systemctl restart v2ray.service

这样设置好以后终端默认走代理的,Firefox 和 chromium 也默认走代理,不需要额外配置。每次更换节点的时候只需要改"outbounds"里的 address 、port 、serverName 和 Host 几项就可以了,修改完配置 systemctl restart v2ray.service 重启 v2ray 服务即可。
qiumaoyuan
2022-05-26 21:02:47 +08:00
clash 配合 privoxy 能解决好多问题。
kaiger
2022-05-27 18:10:25 +08:00
在 ~/.gitconfig 文件可以设置代理

```
[http]
cookieFile = ~/.gitcookies
postBuffer = 655360000
proxy = socks5://127.0.0.1:1090

[http "https://github.com"]
proxy = socks5://127.0.0.1:1090

[https]
proxy = socks5://127.0.0.1:1090
```
takeshima
2022-05-27 19:12:34 +08:00
最简单的办法,透明代理,用 v2rayA 或者 clash-premium-bin 都行
ferstar
2022-05-31 15:38:08 +08:00
这题我会啊,不一定非要用梯子不可;可以用 github 镜像来替换下载地址,然后指定其他的下载工具下载,具体见

https://blog.ferstar.org/post/issue-64/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/855335

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX