多个java版本混淆导致的。比如java 11和java8
解决方法:
https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
On Ubuntu 18.04 the root cause is a conflict between openjdk-11-jdk (which is default) and other packages depending on it. It has already been fixed in Debian and will be included in Ubuntu shortly. Meanwhile the simplest workaround is to demote your java to version 8. Other solutions employing ca-certificates-java are much more complicated.
First remove conflicting packages:
sudo apt-get remove --purge openjdk* java-common default-jdk
sudo apt-get autoremove --purge
Check whether you successfully removed all related packages by:
sudo update-alternatives --config java
The system shall prompt you there is no Java available to config, otherwise this workaround fails.
Then reinstall required packages:
sudo apt-get install openjdk-8-jdk
本文解决在Ubuntu18.04中因默认安装的openjdk-11-jdk与其他依赖此包的软件冲突问题,提供了详细的步骤来卸载冲突的软件包并重新安装所需的Java版本。
1817

被折叠的 条评论
为什么被折叠?



