安装 jre1.8.0_131 时返回错误退出状态 127,处理时遇到错误:install-info

安装 jre1.8.0_131 时返回错误退出状态 127,处理时遇到错误:install-info

我正在使用 ubuntu 16.04。我对 linux 完全陌生。我尝试安装 jre1.8.0_131,然后导出路径,按照教程所述复制文件。然后当我使用时sudo apt upgrade,出现错误:

0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (6.1.0.dfsg.1-5) ...
/usr/sbin/update-info-dir: 4: /etc/environment: PATH=/usr/lib/java/jre1.8.0_131/bin: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

我猜 PATH 有问题??

相关内容