this did not work for me. I have the newer version nvidia (525.147.05-7~deb12u1) and running on linux-image-6.1.0-17-amd64. For apt update I get all packages up to date and for apt upgrade I get 4 not fully installed packages:@Rita G.
Please do NOT follow what @Fossy and @M22 said, it is wrong.
Fossy's suggestion to use the Nouveau drivers instead of the much better NVidia drivers will result into an unstable system whose desktop constantly crashes and whose 3D performance is slow. His proposal is based on ideology, not technical usability.
M22's suggestion of adding the proposed-updates in /etc/apt/source.list file is only for experiences users that know what they are doing and it is only a short term workaround. It is not for the normal user. So don't follow his suggestion either.
As a simple user, you don't have to do anything in such cases except select and boot the older kernel in Grub via the Grub menu when booting and then wait until Debian stable is updated by the Debian maintainers. That's the only sensible suggestion.
And then you just have to wait until the packages are updated and the problem is fixed in Debian stable.
This happened today.
As of today there is a newer version of the nvidia-graphics-drivers package in Debian stable in the bookworm-updates repository.
bookworm-updates is NOT the same as bookworm-proposed-updates.
Just make sure that your /etc/apt/sources.list contains the following entry and this is usually the case for a normal Debian installation with the non-free packages enabled:Thus you have to do nothing, except updating your system.Code:
deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
With this update to the nvidia-graphics-drivers package to version 525.147.05-7~deb12u1, the new 6.1.0-18-amd64 kernel can be built easily without errors and the system can then boot without errors.
Thus to make it short, the problem is now solved.
I am running here my system with nvidia-graphics-drivers version 525.147.05-7~deb12u1 and linux-image-6.1.0-18-amd64 and a NVidia video card. I was just using the old kernel until the Debian maintainers solved the problem in the repository and that was today.
linux-headers-6.1.0-18-amd64
linux-headers-amd64
linux-image-6.1.0-18-amd64
linux-image-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-6.1.0-18-amd64 (6.1.76-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-18-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...
'make' all KVER=6.1.0-18-amd64.........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/88x2bu/1.1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-18-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.1.0-18-amd64 (--configure):
installed linux-image-6.1.0-18-amd64 package post-installation script subprocess returned error exit status 1
Setting up linux-headers-6.1.0-18-amd64 (6.1.76-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-18-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...
'make' all KVER=6.1.0-18-amd64.........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/88x2bu/1.1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-18-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-18-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-18-amd64 (--configure):
installed linux-headers-6.1.0-18-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-18-amd64 (= 6.1.76-1); however:
Package linux-image-6.1.0-18-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.1.0-18-amd64 (= 6.1.76-1); however:
Package linux-headers-6.1.0-18-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-18-amd64
linux-headers-6.1.0-18-amd64
linux-image-amd64
linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
ive tried apt-get -f install, apt full-upgrade, dpkg --configure linux-..., dpkg -C, apt purge "*nvidia*", apt install nvidia-driver firmware-misc-nonfree nothing works
deb https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
ive had both of those in my sources already. What am I doing wrong? Would really like to get this working.
Statistics: Posted by huemob — 2024-02-20 00:08