![我该如何摆脱不需要的 Java 版本?](https://linux22.com/image/1170218/%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E6%91%86%E8%84%B1%E4%B8%8D%E9%9C%80%E8%A6%81%E7%9A%84%20Java%20%E7%89%88%E6%9C%AC%EF%BC%9F.png)
我需要用 8 替换 Java JDK 11,因为这是唯一适用于 Buildozer 的 Java 版本。
11 安装在我的机器上:
openjdk 11.0.5 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)
当我跑步时sudo apt-get remove openjdk-11-jdk
我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'openjdk-11-jdk' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
我能做些什么 ?
答案1
通过运行解决问题:sudo apt-get remove openjdk-*