如何在 Ubuntu GNOME 上安装 KDE?

如何在 Ubuntu GNOME 上安装 KDE?

我想在我的 Ubuntu 上安装 KDE,但我只想使用 KDE 并删除 GNOME。我想保留计算机上的数据。我该怎么办?

当我运行:sudo apt-get install kubuntu-desktop 时,终端显示此错误:正在读取软件包列表...完成正在构建依赖关系树
正在读取状态信息...完成无法安装某些软件包。这可能意味着您请求了一个不可能的情况,或者如果您使用的是不稳定的发行版,则某些必需的软件包尚未创建或已从传入中移出。以下信息可能有助于解决这种情况:

The following packages have unmet dependencies:
kubuntu-desktop : Depends: dolphin but it is not going to be installed
               Depends: kinfocenter but it is not going to be installed
               Depends: kwin
               Depends: okular but it is not going to be installed
               Depends: plasma-desktop but it is not going to be installed
               Depends: powerdevil but it is not going to be installed
               Depends: sddm-theme-breeze but it is not going to be installed
               Depends: software-properties-kde but it is not going to be installed
               Recommends: amarok but it is not going to be installed
               Recommends: apturl-kde but it is not going to be installed
               Recommends: baloo-utils but it is not going to be installed
               Recommends: cryptsetup but it is not installable
               Recommends: k3b but it is not going to be installed
               Recommends: kate but it is not going to be installed
               Recommends: kde-telepathy but it is not going to be installed
               Recommends: kdeconnect-plasma but it is not going to be installed
               Recommends: krdc but it is not going to be installed
               Recommends: ktorrent but it is not going to be installed
               Recommends: kwin-addons but it is not going to be installed
               Recommends: libreoffice-base but it is not installable
               Recommends: libreoffice-kde but it is not going to be installed
               Recommends: libreoffice-style-oxygen but it is not going to be installed
               Recommends: plasma-discover but it is not going to be installed
               Recommends: plasma-discover-updater but it is not going to be installed
               Recommends: plasma-nm but it is not going to be installed
               Recommends: plasma-widgets-addons but it is not going to be installed
               Recommends: qtdeclarative5-xmllistmodel-plugin but it is not going to be installed
               Recommends: skanlite but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

我发现你想完全删除 Gnome 并改用 KDE,你可以使用purebuntu 脚本

  1. purebuntu.py从以下位置下载文件这个 GitHub 存储库

    wget https://raw.githubusercontent.com/aysiu/purebuntu/master/purebuntu.py
    
  2. apt-rdepends使用终端命令安装包

    sudo apt-get update && sudo apt-get install apt-rdepends
    
  3. 运行purebuntu.py脚本告诉它你想要删除ubuntu-gnome-desktop并保留安装kubuntu-desktop

    python purebuntu.py --remove ubuntu-gnome-desktop --keep kubuntu-desktop > apt-command
    

    apt-get这将在名为 的文件中生成并输出一条长命令apt-command

  4. 打开apt-command文件并复制生成的命令。然后将命令粘贴到终端中并点击Enter

这将删除 的包ubuntu-gnome-desktop并安装kubuntu-desktop被警告这样,系统可能会进入原始 Kubuntu 状态。您可能需要重新安装您安装的额外软件包。

相关内容