sudo alien -i jre-8u231-linux-x64.rpm
warning: jre-8u231-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
warning: jre-8u231-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
warning: jre-8u231-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Warning: Skipping conversion of scripts in package jre1.8: postinst postrm prerm
Warning: Use the --scripts parameter to include the scripts.
warning: jre-8u231-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
dpkg --no-force-overwrite -i jre1.8_1.8.0231-1_amd64.deb
(Reading database ... 143050 files and directories currently installed.)
Preparing to unpack jre1.8_1.8.0231-1_amd64.deb ...
Unpacking jre1.8 (1.8.0231-1) over (1.8.0231-1) ...
Setting up jre1.8 (1.8.0231-1) .
我正在尝试在我的 Ubuntu 框中安装 JRE,在安装过程中我收到以下警告消息,而且我不确定 jre 是否安装正确。
java -version
Command 'java' not found, but can be installed with:
apt install default-jre
apt install openjdk-11-jre-headless
apt install openjdk-8-jre-headless
Ask your administrator to install one of them.
在终端中运行 java 版本时,我没有从终端得到任何东西。
你能帮我解决这个问题吗