Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Error when installing nvidia-driver firmware-misc-nonfree

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
nalsudo
Posts: 9
Joined: 2024-03-06 15:57

[Solved] Error when installing nvidia-driver firmware-misc-nonfree

#1 Post by nalsudo »

System Information:

inxi -GSaz --vs output:

Code: Select all

inxi 3.3.26-00 (2023-03-28)
System:
  Kernel: 6.1.0-18-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-amd64
    root=UUID=dc01939c-dada-4c11-aad9-719b3695de97 ro quiet splash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 vt: 7 dm: LightDM v: 1.26.0 Distro: Debian GNU/Linux 12 (bookworm)
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: ASUSTeK driver: nouveau
    v: kernel non-free: 530.xx+ status: current (as of 2023-03) arch: Pascal
    code: GP10x process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 3 speed: 8 GT/s ports: active: HDMI-A-1
    empty: DP-1,DVI-D-1 bus-ID: 01:00.0 chip-ID: 10de:1c82 class-ID: 0300
    temp: 52.0 C
  Device-2: NVIDIA AD104 [GeForce RTX 4070] vendor: ASUSTeK driver: N/A
    alternate: nouveau non-free: N/A status: unknown device ID pcie: gen: 3
    speed: 8 GT/s lanes: 4 link-max: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 03:00.0 chip-ID: 10de:2786 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver:
    X: loaded: modesetting unloaded: fbdev,vesa dri: nouveau gpu: nouveau
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: Sceptre X405BV-FMQC
    serial: <filter> built: 2016 res: 1920x1080 hz: 60 dpi: 55 gamma: 1.2
    size: 880x490mm (34.65x19.29") modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.3 Mesa 22.3.6 renderer: NV137 direct-render: Yes




Here's what happens when I run

Code: Select all

sudo apt install nvidia-driver firmware-misc-nonfree

Code: Select all

Building for 6.1.0-18-amd64
Building initial module for 6.1.0-18-amd64
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/525.147.05/build/make.log for more informat
ion.
dpkg: error processing package nvidia-kernel-dkms (--configure):
 installed nvidia-kernel-dkms package post-installation script subprocess return
ed error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver:
 nvidia-driver depends on nvidia-kernel-dkms (= 525.147.05-4~deb12u1) | nvidia-k
ernel-525.147.05 | nvidia-open-kernel-525.147.05 | nvidia-open-kernel-525.147.05
; however:
  Package nvidia-kernel-dkms is not configured yet.
  Package nvidia-kernel-525.147.05 is not installed.
  Package nvidia-kernel-dkms which provides nvidia-kernel-525.147.05 is not conf
igured yet.
  Package nvidia-open-kernel-525.147.05 is not installed.
  Package nvidia-open-kernel-525.147.05 is not installed.

dpkg: error processing package nvidia-driver (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
Processing triggers for update-glx (1.2.2) ...
Processing triggers for glx-alternative-nvidia (1.2.2) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto
 mode
Processing triggers for glx-alternative-mesa (1.2.2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
Errors were encountered while processing:
 nvidia-kernel-dkms
 nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I try to individually configure the relevant nvidia packages:

Code: Select all

sudo dpkg --configure nvidia-driver
dpkg: dependency problems prevent configuration of nvidia-driver:
 nvidia-driver depends on nvidia-kernel-dkms (= 525.147.05-4~deb12u1) | nvidia-kernel-525.147.05 | nvidia-open-kernel-525.147.05 | nvidia-open-kernel-525.147.05; however:
  Package nvidia-kernel-dkms is not configured yet.
  Package nvidia-kernel-525.147.05 is not installed.
  Package nvidia-kernel-dkms which provides nvidia-kernel-525.147.05 is not configured yet.
  Package nvidia-open-kernel-525.147.05 is not installed.
  Package nvidia-open-kernel-525.147.05 is not installed.

dpkg: error processing package nvidia-driver (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-driver
and when I try configuring nvidia-kernel-dkms:

Code: Select all

sudo dpkg --configure nvidia-driver
dpkg: dependency problems prevent configuration of nvidia-driver:
 nvidia-driver depends on nvidia-kernel-dkms (= 525.147.05-4~deb12u1) | nvidia-kernel-525.147.05 | nvidia-open-kernel-525.147.05 | nvidia-open-kernel-525.147.05; however:
  Package nvidia-kernel-dkms is not configured yet.
  Package nvidia-kernel-525.147.05 is not installed.
  Package nvidia-kernel-dkms which provides nvidia-kernel-525.147.05 is not configured yet.
  Package nvidia-open-kernel-525.147.05 is not installed.
  Package nvidia-open-kernel-525.147.05 is not installed.

dpkg: error processing package nvidia-driver (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-driver
and when

Code: Select all

sudo apt install nvidia-kernel-525.147.05 nvidia-open-kernel-525.147.05
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'nvidia-kernel-dkms' instead of 'nvidia-kernel-525.147.05'
Note, selecting 'nvidia-open-kernel-dkms' instead of 'nvidia-open-kernel-525.147.05'
nvidia-kernel-dkms is already the newest version (525.147.05-4~deb12u1).
nvidia-kernel-dkms set to manually installed.
The following NEW packages will be installed:
  nvidia-open-kernel-dkms nvidia-open-kernel-support
0 upgraded, 2 newly installed, 0 to remove and 83 not upgraded.
2 not fully installed or removed.
Need to get 26.2 MB of archives.
After this operation, 173 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/contrib amd64 nvidia-open-kernel-support amd64 525.147.05-1~deb12u1 [9,964 B]
Get:2 http://deb.debian.org/debian bookworm/contrib amd64 nvidia-open-kernel-dkms amd64 525.147.05-1~deb12u1 [26.2 MB]
Fetched 26.2 MB in 3s (9,891 kB/s)                  
Selecting previously unselected package nvidia-open-kernel-support.
(Reading database ... 228767 files and directories currently installed.)
Preparing to unpack .../nvidia-open-kernel-support_525.147.05-1~deb12u1_amd64.deb ...
Unpacking nvidia-open-kernel-support (525.147.05-1~deb12u1) ...
Selecting previously unselected package nvidia-open-kernel-dkms.
Preparing to unpack .../nvidia-open-kernel-dkms_525.147.05-1~deb12u1_amd64.deb ...
Unpacking nvidia-open-kernel-dkms (525.147.05-1~deb12u1) ...
Setting up nvidia-kernel-dkms (525.147.05-4~deb12u1) ...
Removing old nvidia-current-525.147.05 DKMS files...
Deleting module nvidia-current-525.147.05 completely from the DKMS tree.
Loading new nvidia-current-525.147.05 DKMS files...
Building for 6.1.0-18-amd64
Building initial module for 6.1.0-18-amd64
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/525.147.05/build/make.log for more information.
dpkg: error processing package nvidia-kernel-dkms (--configure):
 installed nvidia-kernel-dkms package post-installation script subprocess returned error exit status 10
Setting up nvidia-open-kernel-support (525.147.05-1~deb12u1) ...
Processing triggers for nvidia-alternative (525.147.05-4~deb12u1) ...
Setting up nvidia-open-kernel-dkms (525.147.05-1~deb12u1) ...
Loading new nvidia-current-open-525.147.05 DKMS files...
Building for 6.1.0-18-amd64
Building initial module for 6.1.0-18-amd64
Done.

nvidia-current-open.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-18-amd64/updates/dkms/

nvidia-current-open-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-18-amd64/updates/dkms/

nvidia-current-open-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-18-amd64/updates/dkms/

nvidia-current-open-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-18-amd64/updates/dkms/

nvidia-current-open-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-18-amd64/updates/dkms/
depmod...
Setting up nvidia-driver (525.147.05-4~deb12u1) ...
Processing triggers for glx-alternative-nvidia (1.2.2) ...
Processing triggers for glx-alternative-mesa (1.2.2) ...
Processing triggers for update-glx (1.2.2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for glx-alternative-nvidia (1.2.2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-18-amd64
Errors were encountered while processing:
 nvidia-kernel-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
I get the same output if I install either separately, I tried that before submitting this post
Last edited by nalsudo on 2024-03-14 16:50, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: Error when installing nvidia-driver firmware-misc-nonfree

#2 Post by sunrat »

You need to add bookworm-updates to your sources and install the nvidia-driver from there, currently v.525.147.05-7~deb12u1

Code: Select all

deb https://deb.debian.org/debian/ bookworm-updates non-free contrib main
maybe non-free-firmware as well, not sure but I don't have it.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

nalsudo
Posts: 9
Joined: 2024-03-06 15:57

Re: Error when installing nvidia-driver firmware-misc-nonfree

#3 Post by nalsudo »

sunrat wrote: 2024-03-14 03:22 You need to add bookworm-updates to your sources and install the nvidia-driver from there, currently v.525.147.05-7~deb12u1

Code: Select all

deb https://deb.debian.org/debian/ bookworm-updates non-free contrib main
maybe non-free-firmware as well, not sure but I don't have it.
Here's what my sources.list looks like, kicking myself for not putting this in the original post:

Code: Select all

# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware

# Backports allow you to install newer versions of software made available for this release
deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1412
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Error when installing nvidia-driver firmware-misc-nonfree

#4 Post by None1975 »

Hello.
You must install linux-headers

Code: Select all

apt install linux-headers-amd64
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

nalsudo
Posts: 9
Joined: 2024-03-06 15:57

Re: [Solved] Error when installing nvidia-driver firmware-misc-nonfree

#5 Post by nalsudo »

Hello all, I got my computer to the correct time setting and now the nvidia drivers installed correctly. Right now I'm back to my original problem wherein there is a noticeable input lag on both keyboard and mouse. Going to post a different topic about the subject

Post Reply