好吧,有一段时间,15.10 阻止我更新。它会说我的启动文件夹中有太多东西,所以我会在终端中使用 sudo apt-get autoremove 来删除它们。今天,当我尝试升级并输入相关命令时,我在终端中得到了以下信息。
tao@tao-ubuntu:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up postfix (2.11.3-1ubuntu2) ...
Adding group `postfix' (GID 134) ...
groupadd: existing lock file /etc/gshadow.lock without a PID
groupadd: cannot lock /etc/gshadow; try again later.
addgroup: `/usr/sbin/groupadd -g 134 postfix' returned error code 10. Exiting.
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
tao@tao-ubuntu:~$
还有谁有想法吗?
答案1
通过我们在这里聊天,我们发现您有一个与 不兼容的存储库Xenial 16.04
。实际存储库显示它在之后停止了发行版14.04
。
W: Failed to fetch ppa.launchpad.net/kilian/f.lux/ubuntu/dists/wily/main/… 404 Not Found
W: Failed to fetch ppa.launchpad.net/kilian/f.lux/ubuntu/dists/wily/main/… 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
需要禁用或从系统中删除出现错误的存储库。kilian/f.lux
需要禁用存储库。
以下位置是存储存储库的位置,可以被禁用或删除。
我的系统截图可能与您的不符
其他软件选项卡中的软件和更新
取消选择出现错误的存储库。
取消选择存储库后,重新运行然后sudo apt-get update
查看sudo apt-get autoremove
问题是否已修复。
希望这可以帮助!