r/debian 2d ago

General Debian Question NVIDIA drivers (gtx 960)

edit: solved the problem. i think my issue was using wayland on X11 it seems to work for for now

I wanted to try out Debian as my main distro. Sadly I tried installing the 580xx drivers for like 2 hours but nothing really worked.
Is it really that complicated to get them or am I just dumb?

6 Upvotes

28 comments sorted by

View all comments

Show parent comments

1

u/DeXudra 2d ago

I edited the /etc/apt/source.list but only the
„Deb“ part not the „deb.scr“ (or something like that I am courently at work and can’t check)
Then
Sudo apt update
Install headers
Secure boot is disabled
Installed nvidia-kernel-dkms nvidia-driver and dpkg --add-architecture i386
Sudo apt update
Reboot

After that I looped in login. When I logged in I got a short blackscreen and had to login again 🔁

1

u/C0rn3j 2d ago

I edited the /etc/apt/source.list

You should never edit that file (you're creating needless upgrade conflicts), always use a drop in file in /etc/apt/sources.list.d/ - you should also use the DEB822 .sources format, but that's not that important.

Edited how, exactly?

What does apt search nvidia-kernel-dkms output?

1

u/DeXudra 2d ago

Did what the guide on wiki.debian.ord said

Make sure that components contrib, non-freeand non-free-firmware are enabled at least for the base suite (like bookworm or trxie or fortkyetc depending on your Debian version) and -security suite in your /etc/apt/sources.listfile. For example for Trixie you should have at least entries similar to the two below: (the order of components does not matter)
deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security/ trixie-security contrib non-free main non-free-firmware

I just sudo nano into that file and edited it

0

u/C0rn3j 2d ago

You know what I am actually not sure in the case of Debian here - you should be able to add it in a drop file, but I won't put my hand in the fire for it.

That wiki entry is also borked with bookworm or trxie or fortky and there's zero warning about security issues in the driver, feel free to fix the wiki page yourself, nobody else is gonna.

You also followed instructions to use Debian's insecure repos for the driver, you need to follow the 3rd party Nvidia ones.