删除卡住的包:安装的子进程安装后脚本已被终止

删除卡住的包:安装的子进程安装后脚本已被终止

它在 期间失败dist-upgrade。我已从源中删除了此软件包 PPA,但如果我执行dist-upgradeinstall -f,它仍会尝试执行此安装脚本并死机:

Setting up yd-tools (1.8.18) ...
dpkg: error processing package yd-tools (--configure):
 subprocess installed post-installation script was killed by signal (Terminated)
E: Sub-process /usr/bin/dpkg returned an error code (1)

我如何“拒绝”更新它?我的意思是,它已被缓存,但我不想更新此特定包。

Removing yd-tools (1.8.18) ...
dpkg: error processing package yd-tools (--purge):
 subprocess installed pre-removal script was killed by signal (Terminated)
dpkg: error while cleaning up:
 subprocess installed post-installation script was killed by signal (Terminated)
Errors were encountered while processing:
 yd-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

也没有帮助

答案1

替换/var/lib/dpkg/info/yd-tools.postinstexit 0 假的成功了

答案2

我确实只是将prerm脚本全部删除了。

就你的情况而言:

sudo rm /var/lib/dpkg/info/yd-tools.prerm

相关内容