当我们试图安装、删除、更新mailutils时,状态‘半安装’总是有相同的错误。能帮我吗?产出:
sudo apt install mailutils是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mailutils is already the newest version (1:2.99.99-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded. 1 not fully installed or removed.
Need to get 0 B/90.4 kB of archives. After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package patch (--configure): package patch is not ready for configuration cannot configure (current status 'half-installed')
Errors were encountered while processing: patch
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2018-04-23 15:36:59
在这种情况下,我将尝试进行以下修复:
首先,尝试使用apt本身来修复包。
sudo apt install -f然后,尝试重新安装软件包:
sudo apt install --reinstall mailutils如果此操作失败,下一步是在apt下面一个级别,并使用dpkg:
sudo dpkg --configure -a如果所有其他操作都失败了,请尝试用apt删除,然后重新安装:
sudo apt purge mailutils为了以防万一,一定要支持你想要的任何吐露。
如果即使这样也不起作用,请再试一次dpkg:
sudo dpkg --remove mailutils然后是apt:
sudo apt install mailutils如果这不起作用,您可能缓存了一个损坏的.deb文件,或者运行了一个损坏的依赖关系:
sudo apt clean
sudo apt autoclean
sudo apt autoremove然后重新开始所有步骤。
https://askubuntu.com/questions/1027497
复制相似问题