我正在尝试使用以下命令在 ubuntu 14.04 64 位上安装 tomcat7
sudo apt-get install tomcat7
无法下载所需的库,出现以下错误
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main openjdk-7-jre-headless amd64 7u65-2.5.1-4ubuntu1~0.14.04.2
404 Not Found [IP: 91.189.92.200 80]
Err http://sy.archive.ubuntu.com/ubuntu/ trusty-updates/main openjdk-7-jre-headless amd64 7u65-2.5.1-4ubuntu1~0.14.04.2
404 Not Found [IP: 91.189.88.149 80]
Err http://sy.archive.ubuntu.com/ubuntu/ trusty-updates/main icedtea-7-jre-jamvm amd64 7u65-2.5.1-4ubuntu1~0.14.04.2
404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://sy.archive.ubuntu.com/ubuntu/pool/main/o/openjdk-7/openjdk-7-jre-headless_7u65-2.5.1-4ubuntu1~0.14.04.2_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://sy.archive.ubuntu.com/ubuntu/pool/main/o/openjdk-7/icedtea-7-jre-jamvm_7u65-2.5.1-4ubuntu1~0.14.04.2_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我尝试了建议的方法--fix-missing
但仍然出现相同的错误,我该如何解决?
答案1
apt 尝试下载过时的版本,目前这是在那里找到的最新版本:
openjdk-7-jre-headless_7u65-2.5.2-3~14.04_amd64.deb
你需要跑apt-get update
。