每次我尝试运行时sudo apt-get autoremove
,都会出现此错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.7.0.dfsg.2-5) ...
/usr/sbin/update-info-dir: 2: /etc/environment: JAVA_HOME: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
您有一个部分安装的软件包。sudo apt install -f
应该修复它。如果没有,请查看此处的建议:如何修复损坏或丢失的包裹