AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1456968
Accepted
retrodans
retrodans
Asked: 2023-02-27 22:12:21 +0800 CST2023-02-27 22:12:21 +0800 CST 2023-02-27 22:12:21 +0800 CST

由于 nvidia 驱动程序,更新 ubuntu 22.04 中断了更新

  • 772

大约一个月前,我将 Ubuntu 更新到 22.04,从那时起我就意识到,每当我尝试安装任何类似的东西时,sudo apt update && sudo apt install signal-desktop我都会遇到以下错误:

Setting up nvidia-dkms-470 (470.161.03-0ubuntu0.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/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-470.161.03 DKMS files...
Deleting module nvidia-470.161.03 completely from the DKMS tree.
Loading new nvidia-470.161.03 DKMS files...
Building for 5.15.0-60-generic
Building for architecture x86_64
Building initial module for 5.15.0-60-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-kernel-source-470.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-60-generic (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 it's a follow-up error from a
previous failure.
                                                                                                            No apport report written because the error message indicates it's a
follow-up error from a prev ious failure.
             Processing triggers for initramfs-tools (0.140ubuntu13.1) ... update-initramfs: Generating /boot/initrd.img-5.15.0-60-generic

如果我查看 /var/lib/dkms/nvidia/470.161.03/build/make.log,我可以看到:

DKMS make.log for nvidia-470.161.03 for kernel 5.15.0-60-generic
(x86_64) Mon 27 Feb 14:04:55 GMT 2023 make[1]: Entering directory
'/usr/src/linux-headers-5.15.0-60-generic' test -e
include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "  include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "  Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2;                           \
/bin/false)

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [Makefile:750: include/config/auto.conf] Error 1 make[1]:
Leaving directory '/usr/src/linux-headers-5.15.0-60-generic' make: ***
[Makefile:80: modules] Error 2

我在网上看过,并尝试过卸载/重新安装步骤,但没有成功。我也看不到“配置”的方法。

如果我尝试运行,make oldconfig && make prepare我得到的是:

make: *** No rule to make target 'oldconfig'. Stop.

任何人都有类似的问题,或者有什么想法可以尝试吗?


uname -r

5.15.0-60-generic

sudo apt 安装 linux-headers-$(uname -r)

Reading package lists...
Done Building dependency tree...
Done Reading
state information...
Done linux-headers-5.15.0-60-generic is already the newest version (5.15.0-60.66). 0 to upgrade, 0 to newly install, 0 to remove and 42 not to upgrade. 3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used. Do
you want to continue? [Y/n] y
Setting up nvidia-dkms-470 (470.161.03-0ubuntu0.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/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-470.161.03 DKMS files...
Deleting module nvidia-470.161.03 completely from the DKMS tree.
Loading new nvidia-470.161.03 DKMS files...
Building for 5.15.0-60-generic
Building for architecture x86_64
Building initial module for 5.15.0-60-generic
ERROR: Cannot create report: [Errno 17] File exists:
'/var/crash/nvidia-kernel-source-470.0.crash' Error! Bad return status for module build on kernel: 5.15.0-60-generic (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 it's a follow-up error from a previous failure.

No apport report written because the error message indicates it's a follow-up error from a prev ious failure.

Processing triggers for initramfs-tools (0.140ubuntu13.1) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-60-generic
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
  • 1 1 个回答
  • 77 Views

1 个回答

  • Voted
  1. Best Answer
    Khalid Abu Shawarib
    2023-02-28T18:25:38+08:002023-02-28T18:25:38+08:00

    根据日志,这些文件似乎不存在:

    /usr/src/linux-headers-5.15.0-60-generic/include/generated/autoconf.h
    /usr/src/linux-headers-5.15.0-60-generic/include/config/auto.conf
    

    由于提供这些文件的 linux-headers 包已经安装,安装可能已损坏。要重新安装当前的内核头文件,请执行以下操作:

    sudo apt install --reinstall linux-headers-$(uname -r)
    
    • 0

相关问题

  • 普利茅斯将来会允许使用专有图形驱动程序获得良好的启动体验吗?

  • 未连接到任何可见进程的令人讨厌的 CPU 峰值

  • 10.04 Lucid 中的多席位状态如何?[关闭]

  • 升级到 10.04 后字体模糊,Nvidia 问题?

  • 帮助让 Flash 播放器在第二个屏幕上工作?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve