我试图更新我的 ubuntu,但在更新 libc6 时崩溃了。所以我尝试单独运行这一行:
sudo apt-get install libc6
我得到以下
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 240 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: syntax error near unexpected token `('
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
我猜这意味着某些配置文件的格式错误,但是哪一个呢?我该如何修复它呢?
谢谢
答案1
在我的/etc/environment
文件中我有代理变量。
http_proxy=http://user:[email protected]:6000
https_proxy=https://user:[email protected]:6000
这导致apt-get install
无法将其更改为:
http_proxy="http://user:[email protected]:6000"
https_proxy="https://user:[email protected]:6000"
修复了