![在 Ubuntu 12.10 上尝试 sudo apt-get update 命令时出现错误](https://linux22.com/image/1344027/%E5%9C%A8%20Ubuntu%2012.10%20%E4%B8%8A%E5%B0%9D%E8%AF%95%20sudo%20apt-get%20update%20%E5%91%BD%E4%BB%A4%E6%97%B6%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
这是以下错误:
W: Failed to fetch http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu/dists/quantal/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu/dists/quantal/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
尝试更新。假设您正在尝试安装 Java
尝试这个
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer