如何用 fedora-release 替换 generic-release?

如何用 fedora-release 替换 generic-release?

由于我的存储库列表中出现了一些意外的折衷主义,该软件包fedora-release已从我的计算机(Fedora 21 笔记本电脑)中卸载并替换为generic-release.

但是,我似乎无法删除它:

[root@linuxbox ~]# yum remove generic-release
(...)
Error: Trying to remove "systemd", which is protected

也不安装 fedora 软件包:

[root@linuxbox ~]# yum install fedora-release
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package fedora-release.noarch 0:21-2 will be installed
--> Processing Conflict: generic-release-21-7.noarch conflicts fedora-release
--> Finished Dependency Resolution
Error: generic-release conflicts with fedora-release-21-2.noarch

如何替换generic-releasefedora-release

答案1

你可以试试:

yum swap generic-release fedora-release

或者你可以尝试:

yum shell
> remove generic-release
> install fedora-release
> run

如果它不起作用,您可能可以下载正确的rpm软件包fedora-release fedora-release-notes并运行:

rpm -e --no-deps generic-release generic-release-notes
rpm -ihv fedora-release-*

相关内容