我尝试通过软件更新程序在我的系统上进行更新(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
什么问题?
谢谢
答案1
检查环境 PATH 中是否有所有需要的文件夹,如下所示:
# sudo echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
如果没有,您需要通过向 PATH 变量添加适当的文件夹来纠正此问题。
另外检查此文件的语法:
# sudo nano /etc/environment
所有缺少的都"
必须在那里。