升级系统时 nvidia 460-470 驱动程序出现错误

升级系统时 nvidia 460-470 驱动程序出现错误

我尝试升级我的系统,但收到以下错误消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-470 (470.161.03-0ubuntu0.20.04.1) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-5.15.0-56-generic
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Removing old nvidia-470.161.03 DKMS files...

-------- Uninstall Beginning --------
Module:  nvidia
Version: 470.161.03
Kernel:  5.15.0-56-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-56-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-56-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-56-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-56-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-peermem.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.15.0-56-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 470.161.03
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-470.161.03 DKMS files...
Building for 5.15.0-56-generic 6.0.12-x64v1-xanmod1
Building for architecture x86_64
Building initial module for 5.15.0-56-generic
Secure Boot not enabled on this system.
Done.

nvidia.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-56-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-56-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-56-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-56-generic/updates/dkms/

nvidia-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-56-generic/updates/dkms/

depmod...

DKMS: install completed.
Building initial module for 6.0.12-x64v1-xanmod1
ERROR (dkms apport): kernel package linux-headers-6.0.12-x64v1-xanmod1 is not supported
Error! Bad return status for module build on kernel: 6.0.12-x64v1-xanmod1 (x86_64)
Consult /var/lib/dkms/nvidia/470.161.03/build/make.log for more information.
dpkg: error processing package nvidia-dkms-470 (--configure):
 installed nvidia-dkms-470 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-470:
 nvidia-driver-470 depends on nvidia-dkms-470 (<= 470.161.03-1); however:
  Package nvidia-dkms-470 is not configured yet.
 nvidia-driver-470 depends on nvidia-dkms-470 (>= 470.161.03); however:
  Package nvidia-dkms-470 is not configured yet.

dpkg: error processing package nvidia-driver-470 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-driver-460:
 nvidia-driver-460 depends on nvidia-driver-470; however:
  Package nvidia-driver-470 is not configured yet.

dpkg: error processing package nvidia-driver-460 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message in
dicates its a followup error from a previous failure.
                                                     Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-6.0.12-x64v1-xanmod1
Errors were encountered while processing:
 nvidia-dkms-470
 nvidia-driver-470
 nvidia-driver-460
E: Sub-process /usr/bin/dpkg returned an error code (1)

看来最新的 nvidia 驱动程序与 xanmod1 内核不兼容,所以我尝试从通用内核升级,但得到了相同的结果。

升级时有什么方法可以升级或禁用此消息吗?我的系统信息:

钥匙 价值
操作系统 Ubuntu 20.04.5 LTS x86_64
主持人 HP Pavilion 笔记本 15-cs3xxx
核心 5.15.0-56-通用
正常运行时间 21分34秒
dpkg软件包 3797
snap软件包 12
0.72.2
解决 1920x1080
Ubuntu:GNOME
主题 黑色-n-白色-GTK
图标 suru-plus-aspromauros-1.6
终端 终端
中央处理器 英特尔(R) 酷睿(TM) i7-1065G7 CPU @ 1.30GHz
核心 4
图形处理器 [英特尔公司 Iris Plus Graphics G7(修订版 07)00:02.0、NVIDIA 公司 GP107M [GeForce GTX 1050 3 GB Max-Q](修订版 a1)06:00.0]
磁盘 341.7 GB / 490.6 GB
记忆 6.7 GB / 12.3 GB

相关内容