全新安装的 Ubuntu 20.04 中 Nvida-Driver-455 软件包损坏

全新安装的 Ubuntu 20.04 中 Nvida-Driver-455 软件包损坏

我刚刚在我的计算机上全新安装了 Ubuntu 20.04(win10 dual、安全启动开启、achi 驱动程序在 bios 中激活、快速启动关闭):

Machine :  Acer Aspire 5 (A5 515-55g).
Processor: Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
Memory  : 7923MB (5740MB used)
Resolution  : 1920x1080 pixels
OpenGL Renderer : GeForce MX350/PCIe/SSE2 (Nvidia driver 450 proprietary)
Gnome-shell version: 3.36.8

我立即完成了所有软件/固件更新并重新启动了机器。问题是,当我运行“sudo ubuntu-drivers autoinstall”时,它输出:

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:
 nvidia-driver-455 : Depends: nvidia-kernel-source-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

当我打开“软件和更新”时,它显示 nvidia-driver-455 已安装并可供使用(但它默认为 nvidia-driver-450)。

在此处输入图片描述

我尝试过的解决方案:

sudo apt remove nvidia-drvier-455 (无法删除,因为尚未安装)

sudo apt install -f (没有任何效果,无法识别破损的包装)

sudo apt install synaptic-. “修复损坏的软件包”(无效,另外 synaptic 无法识别已安装的 nvidia-driver-455)

Synaptic 搜索“nvidia-driver-455”

在此处输入图片描述

我选择任何项目,“标记为安装”是唯一的选项,并且必须删除 nvidia-driver-450,所以我不这样做。:-)

注意:我不知道这是否相关,但在 18.04 下...virtualbox dkms 和 mesa/vulkan 驱动程序似乎与其他驱动程序冲突,我无法让两者同时工作(修复一个会破坏另一个)。

无论如何,我对此感到困惑。有什么建议吗?

答案1

跑步

sudo apt update
sudo apt-get remove 'nvidia.*'
sudo apt install nvidia-driver-455

我建议禁用安全启动。

相关内容