尝试使用 make 进行编译时出错。(这还包括执行 apt-get update 后的快照)

尝试使用 make 进行编译时出错。(这还包括执行 apt-get update 后的快照)

这是我收到的错误:

Fetched 120 kB in 1min  1s (1,937 B/s)
Reading package lists... Done
W: GPG error: http://update.yuuguu.com hardy Release: The following signatures                  couldn't be verified because the public key is not available: NO_PUBKEY 483881FD2506E8CC
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5EC48884BB901940
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise/InRelease 

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-security/InRelease

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-proposed/InRelease

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Could not resolve '....archive.ubuntu.com'

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg  Could not resolve '....archive.ubuntu.com'

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg  Could not resolve '....archive.ubuntu.com'

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-proposed/Release.gpg  Could not resolve '....archive.ubuntu.com'

W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg  Could not resolve '....archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:/usr/src/asterisk/dahdi-linux-complete-2.6.0+2.6.0# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'make' has no installation candidate

有任何想法吗?

答案1

这里有两个问题:

  1. 您没有某些存储库的公钥。这意味着您的包管理器认为这些存储库不安全。这网站应该可以帮助您检索密钥并更新您的 apt 数据库。
  2. 您的计算机无法连接到一个存储库。造成这种情况的原因有很多。可能是由于您的计算机上的网络设置错误,或者存储库可能已关闭,或者...

相关内容