分享

Ubuntu Server apt-get出现'Failed to fetch'问题

admin 发表于 2014-9-15 17:43:34 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 0 10442

在安装cloudera的过程中,遇到下面问题,原先网络是通的,后来才发现原来是网络不通了。
问题导读
1.使用apt-update失败,会出现什么现象?
2.什么情况下 sudo apt-key add -会失败?





问题1:Failed to fetch


使用apt-update失败
  1. W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-amd64/Packages  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
  2. W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
  3. W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
  4. W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
复制代码





问题2:gpg: no valid OpenPGP data found.
  1. $ curl -s http://archive.cloudera.com/cm5/ubuntu/precise/amd64/cm/archive.key | sudo apt-key add -
  2. gpg: no valid OpenPGP data found.
复制代码
以上两个问题需要检查网络,不同的话则会发生上面两个问题



没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条