软件包安装失败

软件包安装失败

每当我尝试安装任何新包或升级包时,都会失败并出现以下错误:

Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...
/etc/environment: line 1: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory

dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 1

No apport report written because MaxReports is reached already
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

我检查了 PATH 变量中提到的所有目录是否存在。

答案1

只需按下键盘上的Ctrl+ Alt+T即可打开终端。打开后,运行以下命令。

sudo dpkg -r install-info
sudo apt-get update
sudo apt-get install -f
sudo apt-get upgrade

相关内容