安装deepin15.10下的openjdk-8(Install deepin15 Openjdk-8 under 10)

在deepin15.10下安装

1 下载openjdk8

http://packages.deepin.com/deepin/pool/main/o/openjdk-8/openjdk-8-jdk_8u171-b11-2_amd64.deb

2 用sduo dpkg -i openjdk-8-jdk _8u171-b11-2_amd64.deb

3 提示报错,没关系

  用 apt-get  –fix-broken install

4 安装成功后可以执行 javac  -version  或 java -version  看安装版本成功

执行屏幕显示如下:

===========================

root@gao-PC:/home/gao/Downloads# dpkg -i openjdk-8-jdk_8u171-b11-2_amd64.deb 正在选中未选择的软件包 openjdk-8-jdk:amd64。(正在读取数据库 … 系统当前共安装有 188319 个文件和目录。)正准备解包 openjdk-8-jdk_8u171-b11-2_amd64.deb …正在解包 openjdk-8-jdk:amd64 (8u171-b11-2) …dpkg: 依赖关系问题使得 openjdk-8-jdk:amd64 的配置工作不能继续: openjdk-8-jdk:amd64 依赖于 openjdk-8-jre (= 8u171-b11-2);然而: 未安装软件包 openjdk-8-jre。 openjdk-8-jdk:amd64 依赖于 openjdk-8-jdk-headless (= 8u171-b11-2);然而: 未安装软件包 openjdk-8-jdk-headless。

dpkg: 处理软件包 openjdk-8-jdk:amd64 (–install)时出错: 依赖关系问题 – 仍未被配置正在处理用于 dde-daemon (3.28.0+c1-1+comsta) 的触发器 …在处理时有错误发生: openjdk-8-jdk:amd64root@gao-PC:/home/gao/Downloads# apt-get upgrade正在读取软件包列表… 完成正在分析软件包的依赖关系树 正在读取状态信息… 完成 您也许需要运行“apt –fix-broken install”来修正上面的错误。下列软件包有未满足的依赖关系: openjdk-8-jdk : 依赖: openjdk-8-jre (= 8u171-b11-2) 但是它还没有被安装 依赖: openjdk-8-jdk-headless (= 8u171-b11-2) 但是它还没有被安装 推荐: libxt-dev 但是它还没有被安装E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt –fix-broken install”(也可以指定一个解决办法)。root@gao-PC:/home/gao/Downloads# apt –fix-broken install 正在读取软件包列表… 完成正在分析软件包的依赖关系树 正在读取状态信息… 完成 正在修复依赖关系… 完成将会同时安装下列软件: ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless建议安装: default-jre openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei fonts-indic推荐安装: libxt-dev下列【新】软件包将被安装: ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless下列软件包将被升级: openjdk-8-jdk升级了 1 个软件包,新安装了 8 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。有 1 个软件包没有被完全安装或卸载。需要下载 0 B/38.0 MB 的归档。解压缩后会消耗 147 MB 的额外空间。您希望继续执行吗? [Y/n] y

————————

In deepin15 10 lower mounting

1 下载openjdk8

http://packages.deepin.com/deepin/pool/main/o/openjdk-8/openjdk-8-jdk_8u171-b11-2_amd64.deb

2 用sduo dpkg -i openjdk-8-jdk _8u171-b11-2_amd64.deb

3. It doesn’t matter if the prompt reports an error

  用 apt-get  –fix-broken install

4. After the installation is successful, execute javac – version or Java – version to see if the installation is successful

The execution screen is displayed as follows:

===========================

root@gao -PC:/home/gao/Downloads# dpkg -i openjdk-8-jdk_ 8u171-b11-2_ amd64. Deb is selecting the unselected package openjdk-8-jdk: AMD64. (Reading database… The system currently has 188319 files and directories installed.) Preparing to unpack openjdk-8-jdk_ 8u171-b11-2_ amd64. deb … Unpacking openjdk-8-jdk: AMD64 (8u171-b11-2) Dpkg: the dependency problem makes the configuration of openjdk-8-jdk: AMD64 unable to continue: openjdk-8-jdk: AMD64 depends on openjdk-8-jre (= 8u171-b11-2); However: the package openjdk-8-jre is not installed. Openjdk-8-jdk: AMD64 depends on openjdk-8-jdk-headless (= 8u171-b11-2); However: the package openjdk-8-jdk-headless is not installed.

Dpkg: error processing package openjdk-8-jdk: AMD64 (- – install): dependency problem – not yet configured. Processing trigger for DDE daemon (3.28.0 + c1-1 + comsta) An error occurred while processing: openjdk-8-jdk: amd64root@gao -PC: / home / Gao / downloads # apt get upgrade reading package list Finished parsing dependency tree for package. Reading status information You may need to run “apt — fix broken install” to correct the above error. The following packages have unsatisfied dependencies: openjdk-8-jdk: dependency: openjdk-8-jre (= 8u171-b11-2) but it has not been installed dependency: openjdk-8-jdk headless (= 8u171-b11-2) but it has not been installed recommendation: libxt dev but it has not been installed e: there are unsatisfied dependencies. Try running “apt — fix broken install” without specifying the package name (you can also specify a solution). root@gao -PC: / home / Gao / downloads # apt — fix broken install reading package list Finished parsing dependency tree for package. Reading status information Completing repairing dependencies The following software will be installed at the same time: CA certificates Java fonts dejavu extra Java common libatk wrapper Java libatk wrapper Java JNI openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless recommended installation: default JRE openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin libnss mDNS fonts ipafont Gothic fonts ipafont mi Ncho fonts-wqy-microhei fonts-wqy-zenhei fonts Indic recommended installation: libxt dev the following [new] packages will be installed: CA certificates Java fonts dejavu extra Java common libatk wrapper Java libatk wrapper Java JNI openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless the following packages will be upgraded: openjdk-8-jdk, 8 packages are newly installed. To uninstall 0 packages, 1 package has not been upgraded. 1 package has not been completely installed or uninstalled. 0 B / 38.0 MB archive needs to be downloaded. After decompression, 147 MB of additional space will be consumed. Do you want to continue? [Y/n] y