无法在Debian机器上安装Java-7
我无法在无法在Debian机器上安装Java-7,java,ubuntu,debian,java-7,Java,Ubuntu,Debian,Java 7,我无法在googlecloudengine上安装Java-7。最初,我添加了一个ppa存储库: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update 得到这个: Hit http://ftp.debian.org wheezy-backports/non-free Translation-en/DiffIndex Err http://ppa.launchpad.net wheezy/main Sources 404
googlecloudengine
上安装Java-7
。最初,我添加了一个ppa
存储库:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
得到这个:
Hit http://ftp.debian.org wheezy-backports/non-free Translation-en/DiffIndex
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
Ign http://ppa.launchpad.net wheezy/main Translation-en
Fetched 473 B in 2s (236 B/s)
W: GPG error: http://www.duinsoft.nl debs Release: The following signatures couldn't be
verified because the public key is not available: NO_PUBKEY E18CE6625CB26B26
W: Failed to fetch
http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/wheezy/main/source/Sources 404
Not Found
W: Failed to fetch
http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/wheezy/main/binary-amd64/Packages
404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used
instead.
确保为什么apt get update
不起作用。我删除了/etc/apt/sources.list.d/
webupd8team java wheezy.list
然后运行apt get update
。一切正常
现在,是否有其他方法可以使用
CLI
在远程计算机上安装java-7
。我在谷歌上搜索了一下,但没有找到任何相关信息(手动安装java-7除外)。如果您没有使用java 7的特定要求,可以在Debian版本中安装java 8。不过,这些步骤与您在Java7版本中遵循的步骤大不相同
您可能知道,安装JDK 8并不意味着您的应用程序需要与JRE 8兼容:您可以随时在Eclipse(或您的IDE)中设置兼容级别。@AmitPal:您更新了GPG密钥吗?