当我尝试时sudo apt upgrade
它说:
Setting up nvidia-dkms-390 (390.132-0ubuntu0.19.10.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Removing old nvidia-390.132 DKMS files...
------------------------------
Deleting module version: 390.132
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-390.132 DKMS files...
Building for 5.5.0-16.2-liquorix-amd64
Building for architecture x86_64
Building initial module for 5.5.0-16.2-liquorix-amd64
ERROR (dkms apport): kernel package linux-headers-5.5.0-16.2-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 5.5.0-16.2-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/390.132/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (--configure):
installed nvidia-dkms-390 package post-installation script subprocess returned error exit sta
tus 10
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on nvidia-dkms-390 (= 390.132-0ubuntu0.19.10.1); however:
Package nvidia-dkms-390 is not configured yet.
dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previ
ous failure.
Processing triggers for initramfs-tools (0.133ubuntu10) ...
update-initramfs: Generating /boot/initrd.img-5.5.0-16.2-liquorix-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169
Errors were encountered while processing:
nvidia-dkms-390
nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)
你能帮助我吗?我试过了sudo dpkg --configure -a
,sudo apt-get install -f
但没用!请帮帮我!因为这个,我无法完成我的工作!
答案1
NVidia 驱动程序需要针对内核 5.5 进行修补(然后针对 5.6 也需要修补)。遗憾的是,Ubuntu 似乎还没有修补版本,但 Debian 有。这里,在修订版 -3 中,他们为 5.5 打了补丁,在修订版 -4 中,他们为 5.6 打了补丁。我只需下载nvidia-...-dkms从那里下载适合您的体系结构的软件包,然后使用 进行安装dpkg
。软件包中没有任何内容不能与 Ubuntu 配合使用。
答案2
假设您正在运行某个 Ubuntu 版本,您可以尝试运行软件更新程序实用程序并检查“附加驱动程序”选项卡,看看是否可以从那里删除/重新安装/升级 Nvidia 驱动程序。
答案3
我之前已经应用了解决加载时黑屏的解决方案,这在最近的软件更新后导致了这个问题。我从 /etc/default/grub 中的以下设置中删除了 dis_ucode_ldr 和 nouveau.modeset=0,它起作用了:
GRUB_CMDLINE_LINUX_DEFAULT="dis_ucode_ldr 静默启动 nouveau.modeset=0"