我正在尝试将 nvidia 驱动程序 535 安装到我的新笔记本电脑上,该笔记本电脑装有 Ubuntu20.04,安装很顺利。但重启后我无法进入 GUI 显示。屏幕左上角只有一个短小的破折号在闪烁。我尝试过重新安装,失败了。重新配置,也失败了。我能搜索到的所有方法都试过了,但都失败了。剩下的唯一事情就是盯着 tty 页面。
我下一步该怎么做才能解决这个问题?我真的很焦虑和困惑。非常感谢!
顺便说一句:戴尔 OMEN9slim,Ubuntu20.04,nvidia 驱动程序 535.86.05
7 月 21 日:参考评论,我尝试将我的 Ubuntu 升级到 22.04 并重新安装桌面。它准确显示了显示内容,但是这次当我尝试重新安装驱动程序 535 时出现了一些其他错误。
Error! Bad return status for module build on kernel: 5.15.0-76-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.54.03/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-decode-535:amd64 (535.54.03-0ubuntu0.22.04.1) ...
Setting up xserver-xorg-video-nvidia-535 (535.54.03-0ubuntu0.22.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.54.03-1); however:
Package nvidia-dkms-535 is not configured yet.
nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.54.03); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (--configure):
dependency problems - leaving unconfigured
Setting up libx11-6:i386 (2:1.7.5-1ubuntu0.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libnvidia-encode-535:amd64 (535.54.03-0ubuntu0.22.04.1) ...
Setting up libxext6:i386 (2:1.3.4-1build1) ...
Setting up libnvidia-decode-535:i386 (535.54.03-0ubuntu0.22.04.1) ...
Setting up libnvidia-gl-535:i386 (535.54.03-0ubuntu0.22.04.1) ...
Setting up libnvidia-encode-535:i386 (535.54.03-0ubuntu0.22.04.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for initramfs-tools (0.140ubuntu13.2) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-76-generic
I: The initramfs will attempt to resume from /dev/nvme0n1p8
I: (UUID=3fc2a239-f279-4907-9378-0f5f513261d3)
I: Set the RESUME variable to override this.
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
nvidia-dkms-535
nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)