因此,在CentOS 7上通过腻子,我正在尝试更新Java,因为它目前是1.6.0。我已经安装了正确的JDK,但是现在我必须编辑替代方法,并且在尝试这样做时收到以下消息:[mcserver@e3-1240v3 ~]$ alternatives --config javaThere are 5 programs which provide 'java'.Selection Command-----------------------------------------------+ 1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java 2 /opt/jdk1.8.0_171/bin/java* 3 /usr/java/jdk-10.0.1/bin/java 4 /usr/java/jre-10.0.1/bin/java 5 /usr/java/jdk1.8.0_172-amd64/jre/bin/javaEnter to keep the current selection[+], or type selection number: 3failed to create /var/lib/alternatives/java.new: Permission denied有什么办法吗?提前致谢。
- 1 回答
- 0 关注
- 430 浏览
添加回答
举报
0/150
提交
取消