LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1229|回复: 1

求助,fedora 9 安装nvidia驱动出现问题!

[复制链接]
发表于 2008-12-13 09:29:15 | 显示全部楼层 |阅读模式
安装驱动:sudo yum -y install kmod-nvidia后出现如下错误提示:
----------------------------------------------------------------------------------------------
9:17:43 : Error in Dependency Resolution
09:17:44 : Missing Dependency: kernel-uname-r = 2.6.27.7-53.fc9.i686 is needed by package kmod-nvidia-2.6.27.7-53.fc9.i686-173.14.15-1.fc9.7.i686 (rpmfusion-nonfree-updates)
-----------------------------------------------------------------------------------------------
用uname -a后显示是:
Linux sar 2.6.27.5-41.fc9.i686 #1 SMP Thu Nov 13 20:52:14 EST 2008 i686 i686 i386 GNU/Linux

在yum中搜索了与内核版本一致的kmod-nvidia安装任出现上述错误提示!
有没解决的办法!
 楼主| 发表于 2008-12-13 12:37:08 | 显示全部楼层
问题原因和解决方法:
来自:http://www.mjmwired.net/resources/mjm-fedora-f9.html#nvidia
------------------------------------------------------------------------------
Install Nvidia Driver
19 November 2008

Fedora recommends users install a 3rd-party RPM packaged driver instead of using the installer from Nvidia's website. Currently RPMFusion provides a well packaged driver with some extra utilities, installable via yum.

First, setup RPMFusion Repositories

[mirandam@charon ~]$ sudo rpm -ivh http://download1.rpmfusion.org/f ... e-stable.noarch.rpm \
http://download1.rpmfusion.org/n ... e-stable.noarch.rpm

[mirandam@charon ~]$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-*

Install the nvidia driver through RPMFusion:

[mirandam@charon ~]$ sudo yum install kmod-nvidia

If a kernel update is installed at the same time (most likely), then a reboot will be required. If not, then simply log out completely of Gnome or KDE and the Nvidia driver should load. The Nvidia logo will flash quickly once.

Matching kernel And kmod-nvidia Versions

In order for the kmod-nvidia driver package to install properly through yum it must find a matching version of the kernel. Usually this will be the latest version of the kernel. Since the driver comes from an RPMFusion mirror and the kernel comes from a Fedora mirror, it is quite possible the mirrors may be out of sync or one version of a package (kernel or kmod-nvidia) is newer that the other. For example the kernel is 2.6.27.5-37.fc9.i686 and the driver is: 2.6.27.5-41.fc9.i686

--> Finished Dependency Resolution
kmod-nvidia-2.6.27.5-41.fc9.i686-173.14.15-1.fc9.6.i686 from rpmfusion-nonfree-updates has depsolving problems
  --gt; Missing Dependency: kernel-uname-r = 2.6.27.5-41.fc9.i686 is needed by package kmod-nvidia-2.6.27.5-41.fc9.i686-173.14.15-1.fc9.6.i686 (rpmfusion-nonfree-updates)

[mirandam@charon ~]$ uname -r
2.6.27.5-37.fc9.i686

In this scenario is it is helpful to use the AKMOD system in RPMFusion. This will try to recompile the proper driver in order to match the available kernels. This helps when the mirrors are out of sync, or RPMFusion has problems updating their drivers, or if you tweak/custom build your kernel. In most situations the 'kmod' created by the AKMOD system will be the same as the one that is (or should be) on the yum mirror. (The only requirement is you have the Software Development packages installed, which is default on a DVD install.)

To use the AKMOD for Nvidia:

[mirandam@charon ~]$ sudo yum install akmod-nvidia

Note: At least 1 reboot is required, for an example see the post: Fedora 9 Nvidia Update.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表