Menu

Unable to install NVIDIA drivers on Devuan using Synaptic or Terminal

2023-10-23
2023-10-23
  • JonTheTwinsFan

    JonTheTwinsFan - 2023-10-23

    Hi All,

    I'm trying to install the NVIDIA drivers on Peppermint Devuan, but I am running into issues that I do not encounter when installing drivers on Peppermint Debian.

    When I try to install using Synaptic Package Manager, I get the screenshot included. When using terminal I get the following error.

    The following packages have unmet dependencies:
    nvidia-driver : Depends: nvidia-kernel-dkms (= 525.125.06-1~deb12u1) but it is not installable or
    nvidia-kernel-525.125.06 or
    nvidia-open-kernel-525.125.06 or
    nvidia-open-kernel-525.125.06
    E: Unable to correct problems, you have held broken packages.

    As mentioned, this issue only pertains to Peppermint Devuan, not Peppermint Debian. Any advice on how to fix these?

    Thanks.

     
  • Adam Hughes

    Adam Hughes - 2023-10-23

    Hi Jon

    You should have a “Fix Broken Packages” option in the synaptic menu. You can now update and install packages just like normal. Alternatively:

    sudo dpkg –configure -a

    this command looks for any broken dependencies on your system caused by packages that aren’t installed. This tool should automatically install any package that it feels you’re missing.

    sudo apt-get install -f
    

    At this point, you can run

    sudo apt-get clean && sudo apt-get update

    followed by

    sudo apt-get upgrade

    to update every package on your system. I hope this helps :)

     
  • Adam Hughes

    Adam Hughes - 2023-10-23

    **To install Nvidia drivers on Devuan: ** I found this tutorial on the devuan website.

    sudo apt install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config dkms -y
    

    Second step blacklist the nouveau driver, create a blacklist file:

    sudo nano /etc/modprobe.d/blacklist-nouveau.conf
    

    In the file add the following and save the file:

    blacklist nouveau
    options nouveau modeset=0
    

    Then regenerate the kernel initramfs:

    sudo update-initramfs -u
    

    Third step install the latests NvidiaGraphicsDrivers:

    sudo apt install firmware-misc-nonfree nvidia-kernel-dkms nvidia-driver nvidia-cuda-toolkit nvidia-cuda-dev nvidia-settings nvidia-smi nvidia-xconfig nvidia-opencl-icd nvidia-opencl-common nvidia-detect -y
    

    Reboot.

    To view how version you have installed, just open an terminal and enter follow:

    nvidia-smi
    

    [Edit] After updating the repos there was a dependency error with the nvidia-settings package in the backports sources, to fix this incident it was enough to remove the backports source command.

    It may happen that the persistenced daemon does not activate and need i386 binaries to work, it will then have to be done manually with the commands below:

    sudo dpkg --add-architecture i386
    
    sudo apt update
    
    sudo update-rc.d nvidia-persistenced defaults
    
    sudo service nvidia-persistenced start
    
     
    • JonTheTwinsFan

      JonTheTwinsFan - 2023-10-23

      Awesome. Thank you for the help on this. I followed the steps, but when I reached step 3 it still gave an error. What ultimately fixed was I edited sources.list to include non-free-firmware. After that, I was able to complete the installation.

      Thank you once again for your help on this! To any admin, please mark this topic as solved.

       

Log in to post a comment.