如何在 ubuntu 18.04 上安装带有 nvidia-390 的 bumblebee

如何在 ubuntu 18.04 上安装带有 nvidia-390 的 bumblebee

我尝试在笔记本电脑上安装 bumblebee

sudo apt install bumblebee linux-headers-generic

但我得到了以下错误

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:
 bumblebee : Depends: xserver-xorg-core (>= 2:1.18)
             Recommends: virtualgl but it is not installable or
                         primus but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该如何修复它?

我的环境:

OS: Ubuntu 18.04.2 LTS x86_64
Kernel: 4.18.0-16-generic 
Host: HP Spectre x360 Convertible 15-bl1XX 
GPU1: Intel UHD Graphics 620
GPU2: NVIDIA GeForce MX150 

apt 列表--已安装|grep nvidia

libnvidia-cfg1-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
libnvidia-common-390/bionic-updates,bionic-updates,bionic-security,bionic-security,bionic,bionic,now 390.116-0ubuntu0.18.04.1 all [installed,automatic]
libnvidia-compute-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
libnvidia-decode-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
libnvidia-encode-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
libnvidia-fbc1-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
libnvidia-gl-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
libnvidia-ifr1-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
nvidia-390/bionic,now 390.87-0ubuntu0~gpu18.04.2 amd64 [installed]
nvidia-compute-utils-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
nvidia-dkms-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
nvidia-driver-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
nvidia-kernel-common-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
nvidia-kernel-source-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
nvidia-prime/bionic-updates,bionic-updates,now 0.8.8.2 all [installed,automatic]
nvidia-settings/bionic,now 418.43-0ubuntu0~gpu18.04.1 amd64 [installed,automatic]
nvidia-utils-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]
xserver-xorg-video-nvidia-390/bionic-updates,bionic-security,bionic,now 390.116-0ubuntu0.18.04.1 amd64 [installed,automatic]

答案1

我遇到了同样的问题。我在终端中输入xserver-xorg-core并发现 xserver-xorg-core 未安装。所以,sudo apt-get install xserver-xorg-core应该这样做。

相关内容