我正在使用 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
(而不是apt
或apt-get
),因为它具有内置的依赖项解析器,它将建议允许安装继续的潜在解决方案。如果您只是想尝试不同的桌面环境,请先尝试 Live 光盘,以免破坏当前系统的稳定性。然后,如果您喜欢它们,只需安装相关软件包(例如
gnome
或xfce4
),而不是ubuntu-desktop
。