如何从 Kubuntu 18.04 切换到 Ubuntu 18.04?

如何从 Kubuntu 18.04 切换到 Ubuntu 18.04?

我正在使用 Kubuntu,但我想安装 Ubuntu Desktop 并使用它,不知何故我无法安装。有人能帮助我吗?

我尝试了这个命令:

sudo apt install ubuntu-desktop

输出为:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ubuntu-desktop : Depends: gdm3 but it is not going to be installed
                  Recommends: ibus
                  Recommends: ibus-table but it is not going to be installed
                  Recommends: shotwell but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt update
All packages are up to date.

apt upgrade 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt-cache policy ubuntu-desktop gdm3 ibus ibus-table shotwell
ubuntu-desktop:
  Installed: (none)
  Candidate: 1.417
  Version table:
     1.417 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
gdm3:
  Installed: (none)
  Candidate: 3.28.0-0ubuntu1
  Version table:
     3.28.0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
ibus:
  Installed: (none)
  Candidate: 1.5.17-3ubuntu4
  Version table:
     1.5.17-3ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
ibus-table:
  Installed: (none)
  Candidate: 1.9.14-3
  Version table:
     1.9.14-3 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages
shotwell:
  Installed: (none)
  Candidate: 0.28.2-0ubuntu1
  Version table:
     0.28.2-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

答案1

根据您提供的信息,apt 似乎拒绝继续安装,因为它检测到冲突的包。

我想到的主要可能性是:

  • 安装了 PPA 或非标准存储库。如果是,请将其删除。

  • 有手动下载并安装的 deb 文件。如果有,请删除它们。

  • 推荐的软件包被视为依赖项。如果是这样,请关闭该设置。(最简单的方法是从内部synaptic或也许software-properties-kde。)

进一步的建议:

  • 使用aptitude(而不是aptapt-get),因为它具有内置的依赖项解析器,它将建议允许安装继续的潜在解决方案。

  • 如果您只是想尝试不同的桌面环境,请先尝试 Live 光盘,以免破坏当前系统的稳定性。然后,如果您喜欢它们,只需安装相关软件包(例如gnomexfce4),而不是ubuntu-desktop

答案2

检查您的存储库设置 - 打开软件与更新(或者software-properties-gtk/ software-properties-kde)。

它看起来应该是 -

Ubuntu 软件选项卡

更新

修复差异,确认重新加载软件包列表。
然后重试使用以下命令安装 Ubuntu 桌面:

sudo apt install ubuntu-desktop

相关内容