当我apt-get update
在我的 ubuntu 18.04.1 LTS 上运行时,我收到以下错误消息
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Err:2 http://ppa.launchpad.net/communitheme/ppa/ubuntu bionic InRelease
504 Gateway Timeout [IP: 135.245.192.7 8000]
Err:3 http://be.archive.ubuntu.com/ubuntu bionic InRelease
504 Gateway Timeout [IP: 135.245.192.7 8000]
Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
504 Gateway Timeout [IP: 135.245.192.7 8000]
Err:5 http://be.archive.ubuntu.com/ubuntu bionic-updates InRelease
504 Gateway Timeout [IP: 135.245.192.7 8000]
Err:6 http://be.archive.ubuntu.com/ubuntu bionic-backports InRelease
504 Gateway Timeout [IP: 135.245.192.7 8000]
Reading package lists... Done
W: Failed to fetch http://be.archive.ubuntu.com/ubuntu/dists/bionic/InRelease 504 Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://be.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 504 Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://be.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 504 Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 504 Gateway Timeout [IP: 135.245.192.7 8000]
W: Failed to fetch http://ppa.launchpad.net/communitheme/ppa/ubuntu/dists/bionic/InRelease 504 Gateway Timeout [IP: 135.245.192.7 8000]
W: Some index files failed to download. They have been ignored, or old ones used instead.
我不确定出了什么问题,我还没有在谷歌上找到解决方案。这是我的错误吗?我不记得在我的安装中更改任何内容。
这不清楚您的网络配置是什么。我没有足够的声誉分数来在评论中询问更多信息,抱歉
看起来类似于apt-get 的“无法连接”错误:可能的代理?
我相信 135.245.192.7:8000 是代理服务器和端口。
“网关超时”告诉我们代理正忙。
请换个时间试试。
或者你有机会改变代理吗?
请比较浏览器中的代理设置和当前的 APT 设置,可能在
/etc/apt/apt.conf
或中/etc/apt/apt.conf.d/proxy.conf
。根据您的问题,您可以通过浏览器访问互联网。以下是 apt 代理的参考资料
https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-the-proxy-for-apt-for-ubuntu-18-04/
apt.conf "Acquire::http:Proxy "proxyserver:port" 似乎没有使用(Win7上Virtual Box下的Ubuntu 13.04)