Centos
在 CentOS 8 上安裝 KDE
我正在嘗試在 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
失敗)
qt 軟體包的官方更新修復了該問題