在ubuntu 16.04上安装pip ...链接无法正常工作

时间:2016-07-07 01:08:53

标签: ubuntu install pip

我试图在sudo更新之后在我的ubuntu桌面上安装pip 但这就是问题所在。

 0 to upgrade, 12 to newly install, 0 to remove and 262 not to upgrade.
Need to get 1,303 kB/29.6 MB of archives.
After this operation, 44.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://au.archive.ubuntu.com/ubuntu xenial-updates/universe i386 python-pip-whl all 8.1.1-2ubuntu0.1
Ign:2 http://au.archive.ubuntu.com/ubuntu xenial-updates/universe i386 python-pip all 8.1.1-2ubuntu0.1
Ign:3 http://au.archive.ubuntu.com/ubuntu xenial/universe i386 python-wheel all 0.29.0-1
Err:1 http://au.archive.ubuntu.com/ubuntu xenial-updates/universe i386 python-pip-whl all 8.1.1-2ubuntu0.1
  404  Not Found [IP: 202.158.214.106 80]
Err:2 http://au.archive.ubuntu.com/ubuntu xenial-updates/universe i386 python-pip all 8.1.1-2ubuntu0.1
  404  Not Found [IP: 202.158.214.106 80]
Err:3 http://au.archive.ubuntu.com/ubuntu xenial/universe i386 python-wheel all 0.29.0-1
  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip-whl_8.1.1-2ubuntu0.1_all.deb 404  Not Found [IP: 202.158.214.106 80]

E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip_8.1.1-2ubuntu0.1_all.deb 404  Not Found [IP: 202.158.214.106 80]

E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/pool/universe/w/wheel/python-wheel_0.29.0-1_all.deb 404  Not Found [IP: 202.158.214.106 80]

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

我发现如果我删除au,可以访问抛出404错误的链接。然后它工作。我该如何解决这个问题?

提前致谢

1 个答案:

答案 0 :(得分:1)

在安装任何内容之前,请始终更新您的软件包:

sudo apt-get update

然后尝试

sudo apt-get install python-pip python-pycurl