我一直在尝试使用以前在Debian-Jessie构建中使用的指令从java1.7升级到1.8。
我就是这么做的:
sudo apt-get update
sudo apt-get upgrade
sudo apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
sudo apt-get install openjdk-8-jre-headless
sudo update-alternatives --config java // select the jdk8 version
简单地
sudo apt-get update
Err http://httpredir.debian.org jessie-updates/main Sources
404 Not Found [IP: 151.101.248.204 80]
Err http://httpredir.debian.org jessie-updates/contrib Sources
404 Not Found [IP: 151.101.248.204 80]
Err http://httpredir.debian.org jessie-updates/non-free Sources
404 Not Found [IP: 151.101.248.204 80]
Err http://httpredir.debian.org jessie-updates/main amd64 Packages
404 Not Found [IP: 151.101.248.204 80]
Err http://httpredir.debian.org jessie-updates/contrib amd64 Packages
404 Not Found [IP: 151.101.248.204 80]
Err http://httpredir.debian.org jessie-updates/non-free amd64 Packages
404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://cloudfront.debian.net/debian/dists/jessie-backports/main/source/Sources 404 Not Found [IP: 99.84.181.117 80]
W: Failed to fetch http://cloudfront.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found [IP: 99.84.181.117 80]
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/source/Sources 404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/contrib/source/Sources 404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/non-free/source/Sources 404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/contrib/binary-amd64/Packages 404 Not Found [IP: 151.101.248.204 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/non-free/binary-amd64/Packages 404 Not Found [IP: 151.101.248.204 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
我甚至不会进入下一个命令,即升级命令,因为这也是返回404s。