在准备安装软件包时尝试运行 apt-get update 时出现以下错误:
chris@chris-X1C6:/etc/apt$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease
Err:2 http://mirror.picosecond.org/ubuntu bionic InRelease
Could not connect to mirror.picosecond.org:80 (2001:470:1:12e::133). - connect (101: Network is unreachable) Could not connect to mirror.picosecond.org:80 (184.105.204.133), connection timed out
Err:3 http://mirror.picosecond.org/ubuntu bionic-updates InRelease
Unable to connect to mirror.picosecond.org:http:
Err:4 http://mirror.picosecond.org/ubuntu bionic-backports InRelease
Unable to connect to mirror.picosecond.org:http:
Err:5 http://mirror.picosecond.org/ubuntu bionic-security InRelease
Unable to connect to mirror.picosecond.org:http:
Reading package lists... Done
W: Failed to fetch http://mirror.picosecond.org/ubuntu/dists/bionic/InRelease Could not connect to mirror.picosecond.org:80 (2001:470:1:12e::133). - connect (101: Network is unreachable) Could not connect to mirror.picosecond.org:80 (184.105.204.133), connection timed out
W: Failed to fetch http://mirror.picosecond.org/ubuntu/dists/bionic-updates/InRelease Unable to connect to mirror.picosecond.org:http:
W: Failed to fetch http://mirror.picosecond.org/ubuntu/dists/bionic-backports/InRelease Unable to connect to mirror.picosecond.org:http:
W: Failed to fetch http://mirror.picosecond.org/ubuntu/dists/bionic-security/InRelease Unable to connect to mirror.picosecond.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
谷歌搜索了一下,发现这似乎最常与代理设置有关。自从我记得上次apt-get update
成功运行以来,我已经通过 Firefox 安装了一个代理,但它目前没有激活,即使激活了,我也没有看到任何指定的代理:
chris@chris-X1C6:/etc/apt$ env | grep -i proxy
chris@chris-X1C6:/etc/apt$
我也尝试过将apt-get update
代理选项设置为 false,如中所述这个帖子(因为我似乎没有 apt.conf 文件):
sudo apt-get update -o Acquire::http::Proxy="false"
结果相同。
任何想法可能是什么原因造成的以及如何解决。
答案1
software-properties-gtk
选择从主服务器下载。
sudo apt update && sudo apt full-upgrade
我不认为这是一个代理问题。
可以连接到你的 ppa。