是否必须删除文件才能 /var/lib/dpkg/info/
摆脱“包处于非常糟糕的不一致状态”? 似乎如此! 每个子进程错误退出状态 5 都会导致此问题吗?
我用尽了 Ubuntu 的所有软件包工具,但总是遇到 dpkg 错误。由于这些工具都早早就坏了,所以没有办法修复这种情况。可怕的资质TUI 陷入无限循环,突触立即退出并出现神秘错误,不允许进行任何操作。核心内容如下:
$ LANG=en sudo dpkg --force-all --purge 'brmfc7440nlpr:i386'
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
(Reading database ... 455581 files and directories currently installed.)
Removing brmfc7440nlpr:i386 (2.0.2-1) ...
dpkg: error processing package brmfc7440nlpr:i386 (--purge):
installed brmfc7440nlpr:i386 package post-removal script subprocess returned error exit status 5
Errors were encountered while processing: brmfc7440nlpr:i386
synaptic 之类的东西,它们只是调用 dpkg,在这里毫无用处。可以设置 APT::Variables 或其他东西来修复它吗?是否总是需要从中删除文件/var/lib/dpkg/info/
?synaptic 损坏似乎是故意的。