如何恢复Oracle JDK更新?

时间:2016-06-17 07:43:47

标签: java linux package ubuntu-14.04

几个月前,我已经停止接收我的KUbuntu 14.04的Oracle JDK更新。 我之前根据http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html安装并配置了它 它工作,但现在在更新期间我只看到错误:

Err https://ppa.launchpad.net trusty/main amd64 Packages
  gnutls_handshake() warning: The server name sent was not recognized
Err https://ppa.launchpad.net trusty/main i386 Packages
  gnutls_handshake() warning: The server name sent was not recognized
W: Failed to fetch https://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/main/binary-amd64/Packages  gnutls_handshake() warning: The server name sent was not recognized

W: Failed to fetch https://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/main/binary-i386/Packages  gnutls_handshake() warning: The server name sent was not recognized

E: Some index files failed to download. They have been ignored, or old ones used instead.

我当前安装的java版本是1.8.0_91。

/etc/apt/sources.list.d/webupd8team-java-trusty.list 的内容:

deb https://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

请帮我修复此错误。

1 个答案:

答案 0 :(得分:0)

我解决了问题。

从我的系统中删除了回购:

rm /etc/apt/sources.list.d/webupd8team-java-trusty.list*

重新添加回购:

sudo add-apt-repository ppa:webupd8team/java