简体   繁体   English

当我尝试在Ubuntu 18.04 m中安装JAVA 7时遇到一些问题

[英]When i am Trying to install JAVA 7 in Ubuntu 18.04 m facing some problem

Package oracle-java7-installer is not available , but is referred to by another package. 软件包oracle-java7-installer不可用 ,但由另一个软件包引用。 This may mean that the package is missing ,that has been obsoleted, or is only available from another source 这可能意味着该软件包丢失 ,已被废弃或只能从其他来源获得

As of March 22, 2019, it appears that oracle-java7-installer is no longer available from the ppa:webupd8team/java upstream repo (it could be that it got move to a different archive repo). 从2019年3月22日开始,似乎无法从ppa:webupd8team / java上游回购中使用oracle-java7-installer(可能是因为它已转移到另一个归档回购中)。

Alternatively, you can install oracle-java8-installer instead if you have the apt repo setup properly. 或者,如果您具有正确的apt repo设置,则可以安装oracle-java8-installer。

Previously its work with below steps- 以前,其工作按以下步骤进行:

Oracle JDK 6 and 7 are not available by default in Ubuntu 18.04/16.04 repositories and requires you to add repositories for the same as follows: 默认情况下,Ubuntu 18.04 / 16.04存储库中不提供Oracle JDK 6和7,并且您需要添加存储库,如下所示:

$ sudo add-apt-repository ppa:webupd8team/java (If you find upstream repo Update on this line and follw below steps)

$ sudo apt-get update

You may now run your command and enjoy using Java.

If you get error while installing ppa:repository, you will need to re-install ca certificates as follows:

$ sudo apt-get install --reinstall ca-certificates

Once this is done try running first two commands again. 完成此操作后,请尝试再次运行前两个命令。

oracle-java7-installer is no longer available from their ppa:webupd8team/java repository, and that would make sense now that Java 8 is out. 从其ppa:webupd8team/java信息库不再提供oracle-java7-installer ,既然Java 8已经发布,那就有意义了。 Try installing Java 8 and see if the problem still persists. 尝试安装Java 8,看看问题是否仍然存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM