在ubuntu中自动删除时发生错误

时间:2018-06-19 12:53:46

标签: linux ubuntu ubuntu-14.04 ubuntu-16.04

sudo apt-get autoremove

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 10 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.1.0.dfsg.1-5) ...
/usr/sbin/update-info-dir: 10: /etc/environment: 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)

1 个答案:

答案 0 :(得分:0)

好吧,错误原因如前所述。去看看/ etc / environment。我怀疑其中有一个损坏的PATH变量(bin而不是/ bin)。