Code: Select all
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
cat /etc/debian_version
uname -a
Code: Select all
apt --installed list "linux-headers-*"
Code: Select all
apt --installed list "nvidia*"
Aki wrote: ↑2024-05-03 21:01 What is your installed Debian and kernel version ? You can verify with the following commands:Code: Select all
cat /etc/debian_version uname -a
Code: Select all
12.5
Linux debian-kde 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
I did install the kernel headers but, as I said, I have now removed the GPU and reinstalled Debian over the previous install. So the clean install without nVidia GPU shows:Did you installed the kernel headers ? You can verify with the following commands:Code: Select all
apt --installed list "linux-headers-*"
Code: Select all
Listing... Done
linux-headers-6.1.0-18-amd64/stable,now 6.1.76-1 amd64 [installed,automatic]
linux-headers-6.1.0-18-common/stable,now 6.1.76-1 all [installed,automatic]
Again, as I said, there are now no nvidia kernel modules installed because I removed the GPU and reinstalled Debian.What are the nvidia kernel modules installed ? You can verify with the following command:Code: Select all
apt --installed list "nvidia*"
Your kernel headers should be the same version as the kernel but they are not. This would be the reason your nvidia-driver package failed to build the kernel modules. The situation is strange as the kernel and headers should update together automatically as long as you have the linux-image-amd64 and linux-headers-amd64 metapackages installed, which they should be in a standard default install.Martek wrote: ↑2024-05-04 11:08Code: Select all
12.5 Linux debian-kde 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
Code: Select all
Listing... Done linux-headers-6.1.0-18-amd64/stable,now 6.1.76-1 amd64 [installed,automatic] linux-headers-6.1.0-18-common/stable,now 6.1.76-1 all [installed,automatic]
I totally agree but I can only comment on my experience. I think I made it clear in that topic that I was giving my experience only.sunrat wrote: ↑2024-05-04 12:36Your kernel headers should be the same version as the kernel but they are not. This would be the reason your nvidia-driver package failed to build the kernel modules. The situation is strange as the kernel and headers should update together automatically as long as you have the linux-image-amd64 and linux-headers-amd64 metapackages installed, which they should be in a standard default install.Martek wrote: ↑2024-05-04 11:08Code: Select all
12.5 Linux debian-kde 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
Code: Select all
Listing... Done linux-headers-6.1.0-18-amd64/stable,now 6.1.76-1 amd64 [installed,automatic] linux-headers-6.1.0-18-common/stable,now 6.1.76-1 all [installed,automatic]
Your negative comments (in another topic) about Nvidia devices may be appropriate for your personal experience but in no way do they reflect everyone's experience. Personally I use a GTX 970 card, 8 years old now, and it has performed admirably when using the Nvidia drivers from default stable repositories.
Show
Code: Select all
apt list -i linux-image-amd64 linux-headers-amd64