dpkg: dependency problems prevent configuration of initramfs-tools

Try using dpkg directly:

dpkg --configure -a

If this still complains about dependencies, try

dpkg --configure -a --force-depends


(Zmamba) zhangzeyuan@DESKTOP-8B20VC8:~$ sudo apt install ubuntu-drivers-common Reading package lists... Done Building dependency tree... Done Reading state information... Done Suggested packages: python3-aptdaemon.pkcompat The following NEW packages will be installed: ubuntu-drivers-common 0 upgraded, 1 newly installed, 0 to remove and 100 not upgraded. 8 not fully installed or removed. Need to get 59.4 kB of archives. After this operation, 300 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-drivers-common amd64 1:0.9.6.2~0.22.04.8 [59.4 kB] Fetched 59.4 kB in 1s (50.2 kB/s) Preconfiguring packages ... Selecting previously unselected package ubuntu-drivers-common. (Reading database ... 85780 files and directories currently installed.) Preparing to unpack .../ubuntu-drivers-common_1%3a0.9.6.2~0.22.04.8_amd64.deb ... Unpacking ubuntu-drivers-common (1:0.9.6.2~0.22.04.8) ... Setting up ubuntu-drivers-common (1:0.9.6.2~0.22.04.8) ... Created symlink /etc/systemd/system/display-manager.service.wants/gpu-manager.service → /lib/systemd/system/gpu-manager.service. Unit /lib/systemd/system/gpu-manager.service is added as a dependency to a non-existent unit display-manager.service. Created symlink /etc/systemd/system/oem-config.service.wants/gpu-manager.service → /lib/systemd/system/gpu-manager.service. Unit /lib/systemd/system/gpu-manager.service is added as a dependency to a non-existent unit oem-config.service. Setting up nvidia-dkms-535 (535.54.03-0ubuntu1) ... A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting the following file: /etc/modprobe.d/nvidia-graphics-drivers.conf A new initrd image has also been created. To revert, please regenerate your initrd by running the following command after deleting the modprobe.d file: `/usr/sbin/initramfs -u` ***************************************************************************** *** Reboot your computer and verify that the NVIDIA graphics driver can *** *** be loaded. *** ***************************************************************************** INFO:Enable nvidia DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here Removing old nvidia-535.54.03 DKMS files... Deleting module nvidia-535.54.03 completely from the DKMS tree. Loading new nvidia-535.54.03 DKMS files... It is likely that 5.10.16.3-microsoft-standard-WSL2 belongs to a chroot's host Building for 5.15.0-141-generic Building for architecture x86_64 Building initial module for 5.15.0-141-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-535.0.crash' Error! Bad return status for module build on kernel: 5.15.0-141-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 dpkg: dependency problems prevent configuration of cuda-drivers-535: cuda-drivers-535 depends on nvidia-dkms-535 (>= 535.54.03); however: Package nvidia-dkms-535 is not configured yet. dpkg: error processing package cuda-drivers-535 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda-drivers: cuda-drivers depends on cuda-drivers-535 (= 535.54.03-1); however: Package cuda-drivers-535 is not configured yet. dpkg: error processing package cuda-drivers (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of nvidia-driver-535: nvidia-driver-535 depends on nvidia-dkms-535 (= 535.54.03-0ubuntu1); however: Package nvidia-dkms-535 is not configured yet. dpkg: error processing package nvidia-driver-535 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda-runtNo apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already ime-12-2: cuda-runtime-12-2 depends on cuda-drivers (>= 535.54.03); however: Package cuda-drivers is not configured yet. dpkg: error processing package cuda-runtime-12-2 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda-12-2: cuda-12-2 depends on cuda-runtime-12-2 (>= 12.2.0); however: Package cuda-runtime-12-2 is not configured yet. dpkg: error processing package cuda-12-2 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda: cuda depends on cuda-12-2 (>= 12.2.0); however: Package cuda-12-2 is not configured yet. dpkg: error processing package cuda (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda-demo-suite-12-2: cuda-demo-suite-12-2 depends on cuda-runtime-12-2; however: Package cuda-runtime-12-2 is not configured yet. dpkg: error processing package cuda-demo-suite-12-2 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: nvidia-dkms-535 cuda-drivers-535 cuda-drivers nvidia-driver-535 cuda-runtime-12-2 cuda-12-2 cuda cuda-demo-suite-12-2 E: Sub-process /usr/bin/dpkg returned an error code (1) (Zmamba) zhangzeyuan@DESKTOP-8B20VC8:~$ 怎么解决
06-13
帮我分析报错:2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up nvidia-dkms-550 (550.120-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/put_your_quirks_here DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude Removing old nvidia-550.120 DKMS files... Deleting module nvidia-550.120 completely from the DKMS tree. Loading new nvidia-550.120 DKMS files... Building for 6.8.0-40-generic Building for architecture x86_64 Building initial module for 6.8.0-40-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-kernel-source-550.0.crash' Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64) Consult /var/lib/dkms/nvidia/550.120/build/make.log for more information. dpkg: error processing package nvidia-dkms-550 (--configure): installed nvidia-dkms-550 package post-installation script subprocess returned error exit status 10 dpkg: dependency problems prevent configuration of nvidia-driver-550: nvidia-driver-550 depends on nvidia-dkms-550 (<= 550.120-1); however: Package nvidia-dkms-550 is not configured yet. nvidia-driver-550 depends on nvidia-dkms-550 (>= 550.120); however: Package nvidia-dkms-550 is not configured yet. dpkg: error processing package nvidia-driver-550 (--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-6.8.0-40-generic Errors were encountered while processing: nvidia-dkms-550 nvidia-driver-550 E: Sub-process /usr/bin/dpkg returned an error code (1)
03-10
Xshell 8 (Build 0068) Copyright (c) 2024 NetSarang Computer, Inc. All rights reserved. Type `help' to learn how to use Xshell prompt. [C:\~]$ Connecting to 192.168.3.57:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.9.140-tegra aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage This system has been minimized by removing packages and content that are not required on a system that users do not log into. To restore this content, you can run the 'unminimize' command. 762 packages can be updated. 440 of these updates are security updates. To see these additional updates run: apt list --upgradable Last login: Wed Mar 26 11:18:21 2025 from 192.168.3.62 bingda@robot:~$ ls /usr/bin | grep nvidia-smi bingda@robot:~$ lsmod | grep nvidia bingda@robot:~$ nvidia-smi -bash: nvidia-smi: command not found bingda@robot:~$ sudo dpkg -i backport-iwlwifi-dkms_9858-0ubuntu3_all.deb [sudo] password for bingda: Selecting previously unselected package backport-iwlwifi-dkms. (Reading database ... 215988 files and directories currently installed.) Preparing to unpack backport-iwlwifi-dkms_9858-0ubuntu3_all.deb ... Unpacking backport-iwlwifi-dkms (9858-0ubuntu3) ... dpkg: dependency problems prevent configuration of backport-iwlwifi-dkms: backport-iwlwifi-dkms depends on dkms (>= 2.1.0.0); however: Package dkms is not installed. dpkg: error processing package backport-iwlwifi-dkms (--install): dependency problems - leaving unconfigured Errors were encountered while processing: backport-iwlwifi-dkms bingda@robot:~$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup
03-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值