apt-get install python-software-properties 不起作用

apt-get install python-software-properties 不起作用

我是新来的,刚接触 Ubuntu,并且基本上对任何与 Linux 相关的东西都很陌生。

我正在尝试安装 zoneminder 并且正在关注这个 wiki 页面:http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.28.0_the_easy_way当我尝试安装时,python-software-properties出现以下信息:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python-pycurl
Suggested packages:
  libcurl4-gnutls-dev python-pycurl-dbg
The following NEW packages will be installed:
  python-pycurl python-software-properties
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.5 kB of archives.
After this operation, 358 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://us.archive.ubuntu.com/ubuntu/ trusty/main python-pycurl amd64 7.19.3-0ubuntu3
  Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe python-software-properties all 0.92.37.3
  Could not resolve 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/pycurl/python-pycurl_7.19.3-0ubuntu3_amd64.deb  Could not resolve 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/s/software-properties/python-software-properties_0.92.37.3_all.deb
  Could not resolve 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我尝试过 apt-get update --fix missing,但问题没有解决。如能得到任何帮助,我将不胜感激。我正在运行 Ubuntu 14.04 Server。

答案1

如果你使用 12.04.5 服务器或备用安装,那么通常可以使用以下方法修复

sudo rm -fr /var/lib/apt/lists
sudo apt-get update

仅供参考:这是问题的原因 https://bugs.launchpad.net/ubuntu/+source/apt-setup/+bug/1434699

答案2

错误消息表明您的 DNS 服务器和/或互联网提供商存在问题Could not resolve 'us.archive.ubuntu.com'

通常这类问题都是暂时的,如果你稍后再试,它就会正常工作。如果没有,请联系您的 ISP 并让他们访问此页面。

相关内容