删除或重新安装损坏的软件包安装

删除或重新安装损坏的软件包安装

我尝试通过下载的 rpm 手动安装“variety”http://www.rpmfind.net/linux/RPM/sourceforge/p/po/postinstaller/fedora/releases/23/x86_64/variety-0.5.5-1.fc23.noarch.html

安装失败,现在我想修复它。但是,使用dnf想到的简单命令不允许安装、重新安装或删除该软件包:

✘ foo@bar > ~/Downloads > sudo dnf reinstall ./variety-0.5.5-1.fc23.noarch.rpm 
Last metadata expiration check performed 0:05:14 ago on Tue Feb 16 07:51:51 2016.
Package variety-0.5.5-1.fc23.noarch not installed, cannot reinstall it.
Error: Nothing to do.


 ✘ foo@bar > ~/Downloads > sudo dnf install ./variety-0.5.5-1.fc23.noarch.rpm  
Last metadata expiration check performed 0:05:19 ago on Tue Feb 16 07:51:51 2016.
Dependencies resolved.
========================================================================================================================
 Package                   Arch                     Version                        Repository                      Size
========================================================================================================================
Installing:
 variety                   noarch                   0.5.5-1.fc23                   @commandline                   778 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total size: 778 k
Installed size: 2.5 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  package variety-0.5.5-1.fc23.noarch is already installed

Error Summary
-------------


 ✘ foor@bar > ~/Downloads > sudo dnf remove variety                              
No match for argument: variety
Error: No packages marked for removal.

我怎样才能解决这个问题?我应该手动删除包内容吗?

相关内容