无法删除Ubuntu服务器中的rundeck

mjqavswn  于 2022-12-29  发布在  其他
关注(0)|答案(1)|浏览(133)

我在ubuntu服务器上安装了rundeck,现在我无法从服务器上删除rundeck,出现错误

root@rundeck:~# apt autoremove rundeck -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  rundeck
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 295 MB disk space will be freed.
(Reading database ... 76559 files and directories currently installed.)
Removing rundeck (4.0.0.20220322-1) ...
Failed to stop rundeckd.service: Unit rundeckd.service not loaded.
dpkg: error processing package rundeck (--remove):
 installed rundeck package pre-removal script subprocess returned error exit status 5
dpkg: too many errors, stopping
Errors were encountered while processing:
 rundeck
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@rundeck:~# 

This is the o/p for apt-get install rundeck

root@rundeck:~# apt-get install rundeck 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
rundeck is already the newest version (4.0.0.20220322-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@rundeck:~#

我从/etc、/var/log、/var/lib中删除了rundeck文件

lhcgjxsq

lhcgjxsq1#

autoremove不用于删除已安装的软件包。
autoremove-自动删除所有未使用的软件包
使用apt remove rundeck或删除配置文件,以及使用:apt purge rundeck.
然后使用dpkg -l|grep rundeck确认是否列出了缺少,它未完全删除。
你也可以用dpkg -P rundeck来清除一个包,但这是危险的,因为dpkg可能不支持所有的依赖项。

相关问题