Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Unable to install nvidia-drivers due to dkms errors  (Read 8748 times)

AlanDouble22

  • Guest
Hi,
I'm trying to install nvidia-drivers for my system but everytime i attempt to do so i get some errors.
Here's what i get.



Setting up nvidia-kernel-dkms (418.74-1) ...
Loading new nvidia-current-418.74 DKMS files...
Building for 5.2.8-towo.3-siduction-amd64
Building initial module for 5.2.8-towo.3-siduction-amd64
Error! Bad return status for module build on kernel: 5.2.8-towo.3-siduction-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/418.74/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
dpkg: dependency problems prevent configuration of nvidia-driver:
 nvidia-driver depends on nvidia-kernel-dkms (= 418.74-1) | nvidia-kernel-418.74; however:
  Package nvidia-kernel-dkms is not configured yet.
  Package nvidia-kernel-418.74 is not installed.
  Package nvidia-kernel-dkms which provides nvidia-kernel-418.74 is not configured yet.


dpkg: error processing package nvidia-driver (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for initramfs-tools (0.134) ...
update-initramfs: Generating /boot/initrd.img-5.2.8-towo.3-siduction-amd64
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=c9268b0b-daa5-48e6-935c-b323b6da9728)
I: Set the RESUME variable to override this.
Processing triggers for update-glx (1.0.0) ...
Processing triggers for glx-alternative-nvidia (1.0.0) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for glx-alternative-mesa (1.0.0) ...
Processing triggers for systemd (241-7) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for initramfs-tools (0.134) ...
update-initramfs: Generating /boot/initrd.img-5.2.8-towo.3-siduction-amd64
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=c9268b0b-daa5-48e6-935c-b323b6da9728)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
 nvidia-kernel-dkms
 nvidia-driver


What can i do to resolve this?

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
Re: Unable to install nvidia-drivers due to dkms errors
« Reply #1 on: 2019/08/12, 23:33:29 »
Quote
What can i do to resolve this?

Use nvidia-driver from experimental.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

AlanDouble22

  • Guest
Re: Unable to install nvidia-drivers due to dkms errors
« Reply #2 on: 2019/08/13, 00:02:19 »
what are the links for the experimental repos?

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: Unable to install nvidia-drivers due to dkms errors
« Reply #3 on: 2019/08/13, 01:15:50 »
Make this your /etc/apt/sources.list.d/debian.list:

Code: [Select]
# debian loadbalancer
deb     http://httpredir.debian.org/debian/ unstable main contrib non-free
# deb-src http://httpredir.debian.org/debian/ unstable main contrib non-free

# deb     http://deb.debian.org/debian/ experimental main contrib non-free
# deb-src http://deb.debian.org/debian/ experimental main contrib non-free


# deb     http://deb.debian.org/debian/ testing main contrib non-free
# deb-src http://deb.debian.org/debian/ testing main contrib non-free

When you want to install the nvidia driver from experimental repo, open /etc/apt/sources.list.d/debian.list for editing.  Remove the "#" from the beginning of the line

Code: [Select]
# deb     http://deb.debian.org/debian/ experimental main contrib non-free
and save the file.

Next, in terminal

Code: [Select]
apt update

apt-install -t experimental nvidia-driver

(let the installation complete)

later, you can open /etc/apt/sources.list.d and put the "#" back in front of the experimental repo line.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

AlanDouble22

  • Guest
Re: Unable to install nvidia-drivers due to dkms errors
« Reply #4 on: 2019/08/14, 02:14:43 »
It Worked! Thanks. :)