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? 

该问题肯定与连接有关,尝试ping或跟踪ubuntu服务器。 如果连接正常,可能你在代理后面,使用环境变量:

 export http_proxy=: