PDA

View Full Version : Problems with nvidia and selinux policy



Wind_Sp00n
9th July 2006, 06:05 AM
Hello, I am having problems installing my nvidia drivers.
I began using Firewing1's method (http://forums.fedoraforum.org/forum/showthread.php?t=99285&highlight=nvidia+drivers) of Nvidia installation and have not installed it.

Then I used the Unofficial Fedora Method (http://www.fedorafaq.org/#nvidia) of Nvidia Installation, which also didn't work.

When I attempt to install kmod-nvidia, I get this

# yum install kmod-nvidia
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kmod-nvidia.i686 0:1.0.8762-2.2.6.17_1.2145_FC5 set to be installed--> Running transaction check
--> Processing Dependency: nvidia-kmod-common >= 1.0.8762 for package: kmod-nvidia
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package xorg-x11-drv-nvidia.i386 0:1.0.8762-3.lvn5 set to be updated
--> Running transaction check
--> Processing Conflict: xorg-x11-drv-nvidia conflicts selinux-policy < 2.2.29-2.fc5
--> Finished Dependency Resolution
Error: xorg-x11-drv-nvidia conflicts with selinux-policy < 2.2.29-2.fc5

I heard that this problem is fixed by updating your selinux policies, so I went ahead and upgraded, which did not solve the problem. Then I gave disabling selinux a shot, which did not solve the problem.

I am currently using kernel 2.6.17-1.2145_FC5, if the kernel happens to be a problem.

I hope this is enough information to help diagnose the problem and find the solution
I have spent a day trying to make nvidia work, but so far I have not reached any solution, so any help is appreciated. :)

Thanks for reading and thanks for responding in advance.

[solution]
Make sure you remove the outdated versions of selinux policies

Seve
9th July 2006, 06:50 AM
Hello:
If you read through this link it will tell you how to deal with your issue:
http://stanton-finley.net/fedora_core_5_installation_notes.html#nVidia
hth
Seve

Wind_Sp00n
9th July 2006, 07:21 AM
Hello:
If you read through this link it will tell you how to deal with your issue:
http://stanton-finley.net/fedora_core_5_installation_notes.html#nVidia
hth
Seve
Thanks for the response, but I seem to have reached no solution.

I followed the guide, once without editing the livna.repo (because I peeked into the file and found that there was data inside, which matched the text that the guide wanted me to input) and then another try replacing everything in that file, while adding the carriage return. I made shure that I used su - and followed each and every direction, skipping only the ati directions.

But I did read that If im getting errors, it could be due to a kernel that was not supported by the repositoy, so I went to check if the kernel I had was supported, and I found that there is a kmod-nvida which version is 1.0.8762-2.2.6.17_1.2145_FC5, and a xorg-x11-drv-nvidia that matches the kmod-nvidia, so I dont think thats the problem... :/

Edit: Also, Ive heard that removing selinux may solve this problem, but I would rather keep this.

Seve
9th July 2006, 07:28 AM
Hello:
Did you read this :https://www.redhat.com/archives/fedora-test-list/2006-February/msg01565.html
and regarding Selinux and the Drivers from Stanton-Finley ?

To prevent SElinux problems with the ATI fglrx or nVidia modules type the following in the root terminal:

setsebool -P allow_execstack=1

Hit enter. Also type:

setsebool -P allow_execmod=1

Wind_Sp00n
9th July 2006, 07:35 AM
Hello:
Did you read this :https://www.redhat.com/archives/fedora-test-list/2006-February/msg01565.html
and regarding Selinux and the Drivers from Stanton-Finley ?

I forgot to mention at the topic post that I have done that, but I went ahead and entered those commands again anyways, and I still get the same message.

Edit: I should of mentioned that this is a fresh installation of fedora core 5, and I have not previously installed any nvidia drivers.

Seve
9th July 2006, 07:42 AM
Hello:
Boot to an earlier kernel and then follow the guide from http://stanton-finley.net/fedora_core_5_installation_notes.html it's bullet proof.
It should work for you and when it does with the older kernel, then you can simply remove the 2145 kernel by using rpm -e kernel-2.6.17-1.2145_FC5 and rpm -e kernel-devel-2.6.17-1.2145_FC5
Then the next time you boot and do a yum update you can install the newer kernel and the corresponding kmod-nvidia.
Seve

Wind_Sp00n
9th July 2006, 05:34 PM
Hello:
Boot to an earlier kernel and then follow the guide from http://stanton-finley.net/fedora_core_5_installation_notes.html it's bullet proof.
It should work for you and when it does with the older kernel, then you can simply remove the 2145 kernel by using rpm -e kernel-2.6.17-1.2145_FC5 and rpm -e kernel-devel-2.6.17-1.2145_FC5
Then the next time you boot and do a yum update you can install the newer kernel and the corresponding kmod-nvidia.
Seve
Using that guide gave me no success, because I had two selinux-policies installed.
I removed the older one, and tried it again. This time there were no policy conflicts, only a Fatal message. But since I figured I was on an outdated kernel, I figured it was safe to finish with the last two commands in the guide, and reboot. Then when I booted into the new kernel, I found the happy shiny nvidia logo.

Thanks for your help Seve, your awesome!