apt-get autoremove 出现错误

apt-get autoremove 出现错误

我的硬盘空间不足。我尝试运行 apt-get autoremove,但出现错误:

sudo apt-get autoremove
[sudo] password for richb201: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 504 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.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 3: /etc/environment: aws_access_key_id: not found
dpkg: error processing package install-info (--configure):
 installed install-info package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

我怎样才能解决这个问题?

$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/richb201/Vault"
CI_ENV="development"
aws_access_key_id = 4WOT
aws_secret_access_key = 2E/oe1k

答案1

我不知道添加了什么台词

aws_access_key_id = 4WOT
aws_secret_access_key = 2E/oe1k

/etc/环境但我认为它们应该不带空格,因此您可以尝试以超级用户身份编辑文件,然后重试自动删除。

相关内容