Problem when trying to install NVIDIA Drivers on arch
When I try to install an NVIDIA Driver using the .run executable I get an error about how an X Server is running and I should turn it off before installing the driver. I know what it means but I don't know how to turn it off. Can someone help me ?
About this post
- Posted
- Archived
- Score
- 1 · 36% up
- Kind
- Text
- ID
- 192ffll
30 comments
From https://wiki.archlinux.org/title/NVIDIA
DO NOT DO THIS! Install the nvidia drivers from the Official Arch Repos. That ".run" installer is a trap and shouldn't be used by anyone.
Archwiki explicitly states not to install from Nvidia'w website
Use the driver which arch provides if you are using the Linux kernel or use the dkms driver for other kernels
https://wiki.archlinux.org/title/NVIDIA
I tried that but it says it conflicts with another package named Nvidia-dkms or sum like that
Keep the `nvidia-dkms` package, it's the dynamic kernel module so it will install the Nvidia driver on whatever kernel you're using. Why would you want to change it? What are you trying to do?
If you installed nvidia-dkms did you also install linux-headers?
RTFW. Seriously Arch has the best doco. Just read it.
I did this once with Ubuntu.
I made it work but it was not a pleasant experience. Nvidia sucks and thank god we have arch package (and someone who maintains it).
What do I do then?
If you have any kind of snapshots, preferably roll back to a state before you tried installing it from nvidia website.
Then just do -
pacman -S nvidia
The .run package is made for LinuxFromScratch, not a distribution. Nvidia drivers are supposed to be installed in /opt, not /usr/lib like their boneheaded developers think should happen overwriting mesa.
For a company that says they support Linux, they sure as hell don't know shit from shine about how to install packages without conflicts.
DONT INSTALL THE DRIVER FROM THE WEBSITE, JUST INSTALL THE PACKAGE
Dont do it the Nvidia's download page is a death trap! Stay away from it!
I fixed using chatgpt guys. Thanks for the help though ☺️