无法在带有 HWE 的 Ubuntu 18.04.2 LTS 上安装 VirtualBox 客户机添加功能 - 为什么?

无法在带有 HWE 的 Ubuntu 18.04.2 LTS 上安装 VirtualBox 客户机添加功能 - 为什么?

最近,我在 VirtualBox 中运行的 Ubuntu 18.04.2 LTS 上安装了 HWE。这是一个干净的安装,没有任何 PPA,也没有第三方存储库。以下是一些信息:

$ head -n2 /etc/apt/sources.list
#deb cdrom:[Ubuntu-MATE 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main multiverse restricted universe

$ hwe-support-status
Your Hardware Enablement Stack (HWE) is supported until April 2023.

$ dpkg -l | grep hwe
ii  linux-generic-hwe-18.04                 4.18.0.15.65                            amd64        Complete Generic Linux kernel and headers
ii  linux-headers-generic-hwe-18.04         4.18.0.15.65                            amd64        Generic Linux kernel headers
ii  linux-image-generic-hwe-18.04           4.18.0.15.65                            amd64        Generic Linux kernel image
ii  xserver-xorg-core-hwe-18.04             2:1.20.1-3ubuntu2.1~18.04.1             amd64        Xorg X server - core server
ii  xserver-xorg-hwe-18.04                  1:7.7+19ubuntu8~18.04.2                 amd64        X.Org X server
ii  xserver-xorg-input-all-hwe-18.04        1:7.7+19ubuntu8~18.04.2                 amd64        X.Org X server -- input driver metapackage
ii  xserver-xorg-input-libinput-hwe-18.04   0.28.1-1~18.04.1                        amd64        X.Org X server -- libinput input driver
ii  xserver-xorg-legacy-hwe-18.04           2:1.20.1-3ubuntu2.1~18.04.1             amd64        setuid root Xorg server wrapper
ii  xserver-xorg-video-all-hwe-18.04        1:7.7+19ubuntu8~18.04.2                 amd64        X.Org X server -- output driver metapackage
ii  xserver-xorg-video-amdgpu-hwe-18.04     18.1.0-1~18.04.1                        amd64        X.Org X server -- AMDGPU display driver
ii  xserver-xorg-video-ati-hwe-18.04        1:18.1.0-1~18.04.1                      amd64        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev-hwe-18.04      1:0.5.0-1ubuntu1~18.04.1                amd64        X.Org X server -- fbdev display driver
ii  xserver-xorg-video-intel-hwe-18.04      2:2.99.917+git20171229-1ubuntu1~18.04.1 amd64        X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-nouveau-hwe-18.04    1:1.0.15-3~18.04.1                      amd64        X.Org X server -- Nouveau display driver
ii  xserver-xorg-video-qxl-hwe-18.04        0.1.5-2build2~18.04.1                   amd64        X.Org X server -- QXL display driver
ii  xserver-xorg-video-radeon-hwe-18.04     1:18.1.0-1~18.04.1                      amd64        X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa-hwe-18.04       1:2.4.0-1~18.04.1                       amd64        X.Org X server -- VESA display driver
ii  xserver-xorg-video-vmware-hwe-18.04     1:13.3.0-2build1~18.04.1                amd64        X.Org X server -- VMware display driver

$ uname -r
4.18.0-15-generic

在安装 HWE 之前我已经安装了virtualbox-guest-x11,但现在它被删除了。而且我无法再次安装它:

$ sudo apt install virtualbox-guest-x11
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:
 virtualbox-guest-x11 : Depends: xorg-video-abi-23
                        Depends: xserver-xorg-core (>= 2:1.18.99.901)
E: Unable to correct problems, you have held broken packages.

以及 HWE 命名的一个:

$ sudo apt install virtualbox-guest-x11-hwe 
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:
 virtualbox-guest-x11-hwe : Depends: xorg-video-abi-23
                            Depends: xserver-xorg-core (>= 2:1.18.99.901)
E: Unable to correct problems, you have held broken packages.

我应该怎么办?

答案1

更新:该错误已于 2019-03-08 版本修复virtualbox-guest-x11-hwe 5.2.18-dfsg-3~ubuntu18.04.3


这是依赖性问题,因此我报告了两个错误:

  1. 错误 1816383 - 无法在带有 HWE 的 18.04.2 LTS 上安装 virtualbox-guest-x11
  2. 错误 1816386 - 无法在带有 HWE 的 18.04.2 LTS 上安装 virtualbox-guest-x11-hwe

因此,最直接的解决方案是安装普通内核和 Xorg,然后删除 HWE 包

sudo apt-get install xserver-xorg linux-image-generic
sudo apt-get purge xserver-xorg-hwe-18.04 linux-image-generic-hwe-18.04 xserver-xorg-legacy-hwe-18.04 xserver-xorg-core-hwe-18.04 xserver-xorg-video-intel-hwe-18.04
sudo apt-get autoremove

然后重新virtualbox-guest-x11安装

sudo apt-get install virtualbox-guest-x11

答案2

您可以尝试启动

apt-get install --reinstall virtualbox-guest-x11-hwe

相关内容