我试图通过软件更新程序对我的系统(4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:37:27 UTC 2018 i686 i686 i686 GNU/Linux )进行更新,但更新失败。所以我尝试通过 apt-get 命令进行更新,但也没有成功。有这个输出:
Do you want to continue? [Y/n] y Get:1 http://cz.archive.ubuntu.com/ubuntu bionic-updates/main i386 ubuntu-release-upgrader-gtk all 1:18.04.24 [9 360 B] Get:2 http://cz.archive.ubuntu.com/ubuntu bionic-updates/main i386 ubuntu-release-upgrader-core all 1:18.04.24 [24,3 kB] Get:3 http://cz.archive.ubuntu.com/ubuntu bionic-updates/main i386 python3-distupgrade all 1:18.04.24 [105 kB] Fetched 139 kB in 0s (881 kB/s)
Extracting templates from packages: 100% Preconfiguring packages ... Setting up install-info (6.5.0.dfsg.1-2) ... /usr/sbin/update-info-dir: 3: /etc/environment: Syntax error: Unterminated quoted string dpkg: error processing package install-info (--configure): installed install-info package post-installation script subprocess returned error exit status 2 Errors were encountered while processing: install-info
什么问题?
谢谢
检查,如果您在环境 PATH 中有所有需要的文件夹,如下所示:
如果没有,您需要通过将适当的文件夹添加到 PATH 变量来纠正此问题。
另外检查此文件的语法:
所有缺少的都
"
必须在那里。