![由于未找到 IP,因此无法安装 Java 7](https://linux22.com/image/1115069/%E7%94%B1%E4%BA%8E%E6%9C%AA%E6%89%BE%E5%88%B0%20IP%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20Java%207.png)
尝试安装 netbeans 和 eclipse,但都出现以下错误(这是因为服务器已关闭并将很快恢复吗?我也无法使用 apt-get 来安装缺少的软件包。也尝试过http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html但它说ls
,mkdir
等缺失,但实际上并没有缺失):
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/main icedtea-netx-common all 1.2-2ubuntu1.3
404 Not Found [IP: 91.189.92.201 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main icedtea-netx-common all 1.2-2ubuntu1.3
404 Not Found [IP: 91.189.92.202 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main icedtea-netx
i386 1.2-2ubuntu1.3
404 Not Found [IP: 91.189.92.202 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/i/icedtea-web/icedtea-netx-common_1.2-2ubuntu1.3_all.deb
404 Not Found [IP: 91.189.92.202 80] Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/i/icedtea-web/icedtea-netx_1.2-2ubuntu1.3_i386.deb
404 Not Found [IP: 91.189.92.202 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
答案1
我下载了 RPM,但结果发现它与 Ubuntu 不兼容。所以我下载了 tar 文件,然后这个答案帮我安装了它。