我在代理后面。每次执行 apt-get update 命令时,屏幕上的输出都是这样
Err http://extras.ubuntu.com trusty InRelease
Err http://extras.ubuntu.com trusty Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://security.ubuntu.com trusty-security InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.15 80]
Err http://in.archive.ubuntu.com trusty InRelease
Err http://in.archive.ubuntu.com trusty-updates InRelease
Err http://in.archive.ubuntu.com trusty-backports InRelease
Err http://in.archive.ubuntu.com trusty Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to extras.ubuntu.com:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.15 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
对所有服务器的 ping 工作都很好,我已禁用 ipv6 地址。似乎没有任何效果。谁能帮我
Ubuntu 和 debian 系统。
添加:
Acquire::http::Proxy "http://yourproxyaddress:proxyport";
Run Code Online (Sandbox Code Playgroud)
归档:
/etc/apt/apt.conf
Run Code Online (Sandbox Code Playgroud)
这是该文件中唯一的条目,我的系统代理变量为空。
http_proxy
https_proxy
HTTP_PROXY
HTTPS_PROXY
Run Code Online (Sandbox Code Playgroud)
其他解决方法: