请帮忙!我已经从以下站点下载了Java SE JDK的.deb版本:https : //www.oracle.com/java/technologies/javase-jdk11-downloads.html此.deb文件保存在我的Downloads文件夹中。当我双击该图标时,会弹出“ Ubuntu软件安装”页面,我点击了install,但从未安装。
因此,我再次按Install(安装)按钮,它说您确定要删除它吗?如果单击“删除”,它将从Ubuntu软件中消失。我已经尝试过,sudo dpkg -i jdk-11.07_linux-x64_bin.deb
但是得到“ dpkg:错误:无法访问归档文件'jdk-11.07_linux-x64_bin.deb':没有这样的文件或目录”。
尝试使用终端安装时,出现以下错误: Oracle JDK 11 is NOT installed. dpkg: error processing package oracle-java11-installer-local (--configure): installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
Errors were encountered while processing: oracle-java11-installer-local E: Sub-process /usr/bin/dpkg returned an error code (1)
java-11-oracle目录中没有任何内容。我已经下载了jdk-11.0.7_linux-x64_bin.tar.gz并将其放入/ var / cache / oracle-jdk11-installer-local,但是现在当我运行sudo add-apt-repository ppa:linuxuprising / java时,我得到了错误Err:1 archive.ubuntu eoan InRelease无法解析'archive.ubuntu'
您可以按照以下步骤进行安装:
sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install openjdk-11-jdk
然后您可以选择要使用哪个Java版本作为默认版本
sudo update-alternatives --config java
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句