![安装 jre1.8.0_131 时返回错误退出状态 127,处理时遇到错误:install-info](https://linux22.com/image/1202718/%E5%AE%89%E8%A3%85%20jre1.8.0_131%20%E6%97%B6%E8%BF%94%E5%9B%9E%E9%94%99%E8%AF%AF%E9%80%80%E5%87%BA%E7%8A%B6%E6%80%81%20127%EF%BC%8C%E5%A4%84%E7%90%86%E6%97%B6%E9%81%87%E5%88%B0%E9%94%99%E8%AF%AF%EF%BC%9Ainstall-info.png)
我正在使用 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 有问题??