内核包 linux-headers-5.15.0-75-generic 不受支持... nvidia-535.113.01

内核包 linux-headers-5.15.0-75-generic 不受支持... nvidia-535.113.01

尝试花了几个小时修复下面的错误。

我喜欢安装 lambda 堆栈... wget -nv -O-https://lambdalabs.com/install-lambda-stack.sh| 嘘 -

非常感谢您的建议。

**sudo apt --fix-broken install**
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-535 (535.113.01-0lambda0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Removing old nvidia-535.113.01 DKMS files...
Deleting module nvidia-535.113.01 completely from the DKMS tree.
Loading new nvidia-535.113.01 DKMS files...
Building for 5.15.0-75-generic
Building for architecture x86_64
Building initial module for 5.15.0-75-generic
ERROR (dkms apport): kernel package linux-headers-5.15.0-75-generic is not supported
Error! Bad return status for module build on kernel: 5.15.0-75-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.113.01/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
dpkg: dependency problems prevent configuration of nvidia-driver-535:
 nvidia-driver-535 depends on nvidia-dkms-535 (= 535.113.01-0lambda0.22.04.1); however:
  Package nvidia-dkms-535 is not configured yet.

dpkg: error processing package nvidia-driver-535 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-75-generic
Errors were encountered while processing:
 nvidia-dkms-535
 nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)

**sudo apt-get install -y initramfs-tools**
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
initramfs-tools is already the newest version (0.140ubuntu13.4).
initramfs-tools set to manually installed.
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-535 (535.113.01-0lambda0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Removing old nvidia-535.113.01 DKMS files...
Deleting module nvidia-535.113.01 completely from the DKMS tree.
Loading new nvidia-535.113.01 DKMS files...
Building for 5.15.0-75-generic
Building for architecture x86_64
Building initial module for 5.15.0-75-generic
ERROR (dkms apport): kernel package linux-headers-5.15.0-75-generic is not supported
Error! Bad return status for module build on kernel: 5.15.0-75-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.113.01/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
dpkg: dependency problems prevent configuration of nvidia-driver-535:
 nvidia-driver-535 depends on nvidia-dkms-535 (= 535.113.01-0lambda0.22.04.1); however:
  Package nvidia-dkms-535 is not configured yet.

dpkg: error processing package nvidia-driver-535 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-75-generic
Errors were encountered while processing:
 nvidia-dkms-535
 nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

在这种情况下,解决方案是回滚到 525 驱动程序,因为对于某些用户来说,535 驱动程序似乎存在问题。

sudo software-properties-gtk --open-tab=4这可以通过进入终端的GUI 来完成,选择 525 驱动程序,Apply changes然后在应用更改后重新启动计算机。

或者这可以完全在终端中完成

sudo apt-get update

sudo apt-get purge nvidia*

sudo apt install nvidia-driver-525

sudo reboot

其他有用的命令

sudo ubuntu-drivers devices#显示所有驱动程序

nvidia-smi#显示当前驱动程序

相关内容