我正在尝试在 CentOS 8 上安装 KDE,但无法安装。我最近在更新软件包和运行时遇到问题dnf --refresh --best --allowerasing update
。这删除了 KDE 和所有相关的应用程序(是的,我知道它警告了我,但我想稍后可以轻松地重新安装它......)。
我在网上找到了一些教程(例如这个),但是当我尝试遵循它们时,我收到“冲突请求”错误(仅显示前 3 个错误,但对于 54 个包我收到相同的错误):
[user@localhost ~]$ sudo dnf groupinstall "KDE Plasma Workspaces" "base-x" -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 1:48:35 ago on Wed 17 Nov 2021 08:45:49 AM CET.
No match for group package "k3b-extras-freeworld"
Error:
Problem 1: conflicting requests
- nothing provides libQt5Core.so.5(Qt_5.12.5_PRIVATE_API)(64bit) needed by kf5-akonadi-server-19.12.2-1.el8.1.x86_64
- nothing provides libQt5Sql.so.5(Qt_5.12.5_PRIVATE_API)(64bit) needed by kf5-akonadi-server-19.12.2-1.el8.1.x86_64
- nothing provides qt5-qtbase(x86-64) = 5.12.5 needed by kf5-akonadi-server-19.12.2-1.el8.1.x86_64
Problem 2: package kwebkitpart-1.4.0-0.6.20190110.el8.x86_64 requires libQt5WebKit.so.5()(64bit), but none of the providers can be installed
- package kwebkitpart-1.4.0-0.6.20190110.el8.x86_64 requires libQt5WebKitWidgets.so.5()(64bit), but none of the providers can be installed
- package kwebkitpart-1.4.0-0.6.20190110.el8.x86_64 requires libQt5WebKitWidgets.so.5(Qt_5)(64bit), but none of the providers can be installed
- package kwebkitpart-1.4.0-0.6.20190110.el8.x86_64 requires libQt5WebKit.so.5(Qt_5)(64bit), but none of the providers can be installed
- conflicting requests
- nothing provides libQt5Gui.so.5(Qt_5.12.5_PRIVATE_API)(64bit) needed by qt5-qtwebkit-5.212.0-0.42.alpha3.el8.x86_64
- nothing provides libQt5Quick.so.5(Qt_5.12.5_PRIVATE_API)(64bit) needed by qt5-qtwebkit-5.212.0-0.42.alpha3.el8.x86_64
- nothing provides qt5-qtbase(x86-64) = 5.12.5 needed by qt5-qtwebkit-5.212.0-0.42.alpha3.el8.x86_64
- nothing provides qt5-qtdeclarative(x86-64) = 5.12.5 needed by qt5-qtwebkit-5.212.0-0.42.alpha3.el8.x86_64
Problem 3: package kdeplasma-addons-5.18.4.1-1.el8.x86_64 requires libQt5WebEngineCore.so.5()(64bit), but none of the providers can be installed
- package kdeplasma-addons-5.18.4.1-1.el8.x86_64 requires libQt5WebEngineCore.so.5(Qt_5)(64bit), but none of the providers can be installed
- package kdeplasma-addons-5.18.4.1-1.el8.x86_64 requires libQt5WebEngine.so.5()(64bit), but none of the providers can be installed
- package kdeplasma-addons-5.18.4.1-1.el8.x86_64 requires libQt5WebEngine.so.5(Qt_5)(64bit), but none of the providers can be installed
- conflicting requests
- nothing provides libQt5Gui.so.5(Qt_5.12.5_PRIVATE_API)(64bit) needed by qt5-qtwebengine-5.12.8-1.el8.x86_64
- nothing provides qt5-qtbase(x86-64) = 5.12.5 needed by qt5-qtwebengine-5.12.8-1.el8.x86_64
我应该做什么来修复它?
如果存储库出现问题,请查看以下列表:
[user@localhost ~]$ sudo dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
repo id repo name
BellSoft BellSoft Repository
appstream CentOS Linux 8 - AppStream
baseos CentOS Linux 8 - BaseOS
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-multimedia negativo17 - Multimedia
extras CentOS Linux 8 - Extras
google-chrome google-chrome
owncloud owncloud
powertools CentOS Linux 8 - PowerTools
rpmfusion-free-updates RPM Fusion for EL 8 - Free - Updates
rpmfusion-nonfree-updates RPM Fusion for EL 8 - Nonfree - Updates
teams teams
我不确定我是否需要全部 - 如果有必要我会删除它们以恢复 KDE。
这里还有历史:
[user@localhost ~]$ sudo dnf history
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
ID | Command line | Date and time | Action(s) | Altered
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
123 | history undo 122 | 2021-11-17 08:54 | Removed | 3
122 | install GConf2-devel | 2021-11-16 23:03 | Install | 3
121 | | 2021-11-16 23:01 | Install | 1
120 | --enablerepo=epel,powertools group -y install KDE Plasma Workspaces base-x --nobest --skip-broken | 2021-11-16 22:39 | Install | 3
119 | --refresh --best --allowerasing update | 2021-11-16 22:04 | E, I, O, U | 848 EE
118 | remove tesseract | 2021-11-16 22:03 | Removed | 35 EE
117 | update | 2021-11-15 17:36 | Upgrade | 58 EE
问题发生在119,但我无法撤消它(sudo dnf history undo 119
失败)
答案1
qt 软件包的官方更新修复了该问题