1.root@VM-12-7-debian:~# apt update
2.root@VM-12-7-debian:~# apt-get install default-jdk ,出现needrestart is being skipped since dpkg has failed 报错,使用
systemctl restart dpkg-db-backup.命令,重启服务,重新输入 apt-get install default-jdk 命令。
3.安装完成后,通过检查java版本来验证它:
root@VM-12-7-debian:~# java -version
欢迎师傅加入交流群:
标签:12,java,root,VM,apt,Debian,安装,debian From: https://www.cnblogs.com/sentouceshi/p/16882475.html