Amazon EC2 Ubuntu 实例包安装问题

Amazon EC2 Ubuntu 实例包安装问题

我有一个亚马逊 EC2 安装的 Ubuntu Precise 12.04,64 位(ami-ce7b6fba)

我似乎无法像您通常期望的那样安装任何东西。当我运行“sudo apt-get update”时,我遇到以下问题;

W: GPG error: http://www.ubnt.com ubuntu Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 06E85760C0A52C50
W: Failed to fetch http://ppa.launchpad.net/andphe/php/ubuntu/dists/precise/main/source/Sources  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/andphe/php/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/andphe/php/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

有人能帮助我解决这个问题吗?

提前感谢

斯图

答案1

这些链接确实不存在。您是否更改了 aptitude 更新源?

如果这是这些特定 PPA 的故障,那么正常更新仍然应该有效。尝试更改来源/etc/apt/sources.list一些不那么激进的事情,比如

deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

您还应该运行自动清理来重新加载 PPA 源的公钥(如果存在的话)

$ apt-get autoclean
$ apt-get update

相关内容