Apt“连接失败”

Apt“连接失败”

自从安装 Ubuntu 以来,我一直无法安装新软件包,甚至无法更新。下面是我尝试安装 Wine 时看到的连接错误转储:

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb  Connection failed [IP: 91.189.88.152 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb  Connection failed [IP: 91.189.88.162 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

问题肯定与连接有关,请尝试 ping 或跟踪 ubuntu 服务器。如果连接正常,则可能是您使用了代理,请使用环境变量:

export http_proxy=<your_proxy>:<port>

相关内容