![删除没有 rpm 或 dnf 的软件包](https://linux22.com/image/216219/%E5%88%A0%E9%99%A4%E6%B2%A1%E6%9C%89%20rpm%20%E6%88%96%20dnf%20%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
由于未知原因,我的 RPMDB 损坏了,经过数小时的挖掘后,我能够创建并填充新的 RPMDB,所有软件包都需要重新安装,但我的 teamviewer 出现问题。说是同时安装,又说不是同时安装。例如:
$ sudo dnf remove teamviewer
Dependencies resolved.
=======================================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================================
Removing:
teamviewer x86_64 15.36.8-0 @teamviewer 256 M
Removing unused dependencies:
minizip-compat x86_64 1.2.13-3.fc38 @rawhide 55 k
Transaction Summary
=======================================================================================================================================================
Remove 2 Packages
Freed space: 256 M
Is this ok [y/N]: y
Running transaction check
error: rpmdbNextIterator: skipping h# 4725
Header V4 RSA/SHA256 Signature, key ID 0c1289c0: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK
Error: An rpm exception occurred: package not installed
$ cat packages | grep team
libteam-1.31-7.fc38.x86_64
teamd-1.31-7.fc38.x86_64
NetworkManager-team-1.41.90-1.fc38.1.x86_64
我有很多这样的东西error: rpmdbNextIterator
,但其他安装和更新都可以工作,只有 teamviewer 失败了。
我的问题是如何删除没有rpm
或 的包dnf
?