我将台式机从 Ubuntu 16.04.3 升级到 17.04,然后又升级到 17.10。由于 Ubuntu 17.10 默认使用 Wayland 并被xorg
保留,因此删除它是否安全xorg
?以下是我尝试 和 时发生apt upgrade
的apt install xorg
情况apt remove xorg
:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
xorg
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
$ sudo apt install xorg
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
xorg : Depends: xserver-xorg (>= 1:7.7+19ubuntu3)
E: Unable to correct problems, you have held broken packages.
$ sudo apt remove xorg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
x11-apps x11-session-utils xinit
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
ubuntu-desktop xorg
0 upgraded, 0 newly installed, 2 to remove and 3 not upgraded.
我注意到ubuntu-desktop
将与 一起被删除xorg
。这是否意味着整个桌面将消失,以至于xorg
如果我想使用桌面,我根本无法删除它?
答案1
您无法删除所有 xorg。该xorg
软件包几乎是一个空的元软件包,因此仅删除它不会对系统的正常运行产生明显的影响。
wayland 和 xorg 会话的会话文件也位于同一个包中,因此您无法删除Ubuntu(Xorg)登录菜单中的选项。