无法清除综述

无法清除综述

我试图清除roundup,并aptitude输出以下错误行:

update-rc.d: /etc/init.d/roundup exists during rc.d purge (use -f to force)
dpkg: error processing roundup (--purge):
 subprocess installed post-removal script returned error exit status 1
Processing triggers for ureadahead ...
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 roundup
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

aptitude的日志没有帮助;那里写了以下几行:

IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.

但出现了以下两行apt/history.log

Purge: roundup:amd64 (1.4.18-1.1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)

roundup顺便说一下,这是一个带有命令行、Web 和电子邮件界面的问题跟踪系统。我不使用它。


系统信息:我正在使用 Ubuntu 12.04.4 LTS,输出为uname -srvmpio

Linux 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

根据要求,我尝试了以下命令:

sudo dpkg -P --force-all --force-remove-reinstreq roundup

输出为:

Removing roundup ...
update-rc.d: /etc/init.d/roundup exists during rc.d purge (use -f to force)
dpkg: error processing roundup (--purge):
 subprocess installed post-removal script returned error exit status 1
Processing triggers for ureadahead ...
Errors were encountered while processing:
 roundup

值得一提的是,这是在运行命令之前和之后完成的

sudo update-rc.d -f roundup remove

更新:aptitude更新清除失败的尝试,根据,包的状态为H,这意味着半安装。我尝试重新安装它(成功)并再次删除它,但没有成功 - 出现了相同的错误,并且状态又恢复了半安装

答案1

尝试强制删除该roundup包,

sudo dpkg -P --force-remove-reinstreq roundup

或者

roundup-dirs尝试将和移动roundup到其他位置,然后尝试上述命令,例如,

sudo mv /etc/init.d/roundup-dirs ~/
sudo mv /etc/init.d/roundup ~/
sudo dpkg -P --force-all --force-remove-reinstreq roundup

相关内容