Apt-get Java JRE 错误

Apt-get Java JRE 错误

我对 Ubuntu 和 Linux 总体来说还比较陌生,有些东西我还不太习惯。当我尝试使用 apt-get 删除软件包时,出现了以下信息:

After this operation, 90.1 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 207189 files and directories currently installed.)
Removing cowsay (3.03+dfsg1-6) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up jre1.8.0-101 (1.8.0101-1) ...
Error: unpack200 - command could not be found.

Please refer to the Troubleshooting section of theInstallation Instructions
on the download page.
update-alternatives: error: alternative path /usr/java/jre1.8.0_101/bin/java doesn't exist
dpkg: error processing package jre1.8.0-101 (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 jre1.8.0-101
E: Sub-process /usr/bin/dpkg returned an error code (1)

安装后,我得到了以下信息:

After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up jre1.8.0-101 (1.8.0101-1) ...
Error: unpack200 - command could not be found.

Please refer to the Troubleshooting section of theInstallation Instructions
on the download page.
update-alternatives: error: alternative path /usr/java/jre1.8.0_101/bin/java doesn't exist
dpkg: error processing package jre1.8.0-101 (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 jre1.8.0-101
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我调用 java -version 时,我得到:

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

任何帮助,将不胜感激。

谢谢。

相关内容