红联Linux门户
Linux帮助

上火!!nvidia驱动的安装不成功(窝火)

发布时间:2009-11-19 20:26:28来源:红联作者:奔豆100
[i=s] 本帖最后由 奔豆100 于 2009-11-21 16:05 编辑 [/i]

今天安装上fedora 12 了,发现显卡驱动安装不上了,

记得先前装11的时候很容易就搞定的,现在直接运行,

从官网下载的run文件,直接运行总是显示有编码不对,

小弟比较菜,用yum方法安装也不行。
小弟是笔记本-gf8400显卡

在前面的论坛上也找过方法但一直没找到,希望大大们能帮忙解决下.



根据楼下的提示,关闭x服务后,init 3
还是提示一堆英文,accept.......
还是没搞定。


var/log
nvidia-installer.log文件

ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
kernel-devel问题已经解决。


这是在文本下安装时,的log
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.

Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 No such device
-> Kernel messages:
NVRM: This can occur when a driver such as rivafb, nvidiafb or
NVRM: rivatv was loaded and obtained ownership of the NVIDIA
NVRM: device(s).
NVRM: Try unloading the rivafb, nvidiafb or rivatv kernel module
NVRM: (and/or reconfigure your kernel without rivafb/nvidiafb
NVRM: support), then try loading the NVIDIA kernel module again.
NVRM: No NVIDIA graphics adapter probed!
[drm] nouveau 0000:01:00.0: Allocating FIFO number 2
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 2
wlan0: authenticate with AP 00:25:86:4d:b1:40
wlan0: authenticated
wlan0: associate with AP 00:25:86:4d:b1:40
wlan0: RX AssocResp from 00:25:86:4d:b1:40 (capab=0x431 status=0 aid=1)
wlan0: associated
CE: hpet increasing min_delta_ns to 22500 nsec
[drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 2
wlan0: disassociating by local choice (reason=3)
NVRM: The NVIDIA probe routine was not called for 1 device(s).
NVRM: This can occur when a driver such as rivafb, nvidiafb or
NVRM: rivatv was loaded and obtained ownership of the NVIDIA
NVRM: device(s).
NVRM: Try unloading the rivafb, nvidiafb or rivatv kernel module
NVRM: (and/or reconfigure your kernel without rivafb/nvidiafb
NVRM: support), then try loading the NVIDIA kernel module again.
NVRM: No NVIDIA graphics adapter probed!
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
文章评论

共有 38 条评论

  1. amberprince 于 2009-12-16 19:47:15发表:

    看来,还是你装的显卡版本不对哈,我的gf7300GT显卡,用的是这样的命令:
    yum install kmod-nvidia 就完成了,他自动关联最新的kernel及devel,它关联的版本是190.42
    版本
    然后关掉nouveau就行了

  2. 奔豆100 于 2009-12-16 17:53:43发表:

    最近忙,也不管了,先用着,等过阵子再折腾。

  3. lijiang 于 2009-12-09 23:02:09发表:

    lz应该改用ubuntu!

  4. lijiang 于 2009-12-09 22:58:18发表:

    [i=s] 本帖最后由 lijiang 于 2009-12-9 23:00 编辑 [/i]

    fedora配置出错率很高

  5. flamingwolf 于 2009-11-26 21:04:54发表:

    我等
    等源里有了驱动再说
    吼吼吼吼

  6. zjgh 于 2009-11-26 21:03:40发表:

    我也是gf8400,安装官方驱动,在grub.conf中加上rdblacklist=nouveau,这样就能开启compiz了

  7. zhangzhaoi 于 2009-11-25 22:12:53发表:

    源里还没有 着啥急?!

  8. bill09 于 2009-11-25 14:14:39发表:

    引用:
    可能是xorg的问题!xorg1.6应该没问题,1.7就可能出现问题,对老显卡驱动不再支持了!
    marco.chan 发表于 2009-11-20 09:19


    是的 主要是xorg 1.7的问题 再等等官方发布新的驱动吧

  9. beyondncz 于 2009-11-22 21:09:01发表:

    bu zhuang ye neng yong a .. wo de 7400 ye zhuang bu shang .. heh e

  10. xiejiaming 于 2009-11-22 17:45:24发表:

    不要窝火,窝火解决不了问题,

  11. zjgh 于 2009-11-21 20:30:06发表:

    安装了驱动,但是无法开启compiz,怎么解决

  12. 蜗牛?小居 于 2009-11-21 19:04:21发表:

    看来我也得先忍忍,对我这样一个初学者,装驱动也是很难得,好好跟大家学习先

  13. darkmoon 于 2009-11-21 18:44:18发表:

    [i=s] 本帖最后由 darkmoon 于 2009-11-21 18:46 编辑 [/i]

    ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
    frequently when this kernel module was built against the wrong or
    improperly configured kernel sources, with a version of gcc that differs
    from the one used to build the target kernel
    , or if a driver such as
    rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
    obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
    installed in this system is not supported by this NVIDIA Linux graphics
    driver release.

    你GCC的版本是什么?
    输入gcc --version
    我的版本是gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)
    如果版本不对 安装下gcc 命令:su -c 'yum install gcc'
    yum install 命令都要在 图形模式下能上网的前提下
    在文本模式下安装显卡驱动 要先输入
    su -c 'init 3'
    安装完成了 再输入su -c 'init 5' 回图形模式

  14. thungoder 于 2009-11-21 17:41:31发表:

    22# hejie_1207
    没看见我的回帖么?就没有那三个软件包着,你在用f12么?

  15. 奔豆100 于 2009-11-21 16:07:12发表:

    22# hejie_1207


    你说的这个已经用过了,但是不管用,那个log文件贴出来了,能看懂吗?帮看看,等待能解决.

  16. ltqk 于 2009-11-21 13:34:38发表:

    我也不会装,不过还支持下楼主

  17. hejie_1207 于 2009-11-21 13:26:33发表:

    你好!在采用官方驱动安装失败的情况下,你可以尝试使用 RPM Fusion 的 NVIDIA 驱动程序。方法是:

    首先,安装 RPM Fusion 的源:
    在 root 权限下,
    # rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
    # rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

    然后,根据你的显卡型号来安装相应的驱动:

    如果你用的是 GeForce 6, 7, 8, 9 & 200 系列显卡,请使用下列命令:
    在 root 权限下,
    # yum install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs
    如果你使用的是 PAE 内核,则使用:
    # rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm \
    http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
    yum --enablerepo=rp*g install kmod-nvidia-PAE xorg-x11-drv-nvidia-libs.i686 \
    xorg-x11-drv-nvidia-libs.x86_64

    如果你用的是 GeForce FX 显卡,请使用下列命令:
    # yum install kmod-nvidia-173xx xorg-x11-drv-nvidia-173xx xorg-x11-drv-nvidia-173xx-libs
    如果你使用的是 PAE 内核,则使用:
    # rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm \
    http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
    # yum --enablerepo=rp*g install kmod-nvidia-173xx-PAE xorg-x11-drv-nvidia-173xx-libs.i686 \
    xorg-x11-drv-nvidia-173xx-libs.x86_64

    如果你用的是 GeForce 4 及更低的显卡,请使用下列命令:
    # yum install kmod-nvidia-96xx xorg-x11-drv-nvidia-96xx xorg-x11-drv-nvidia-96xx-libs

    下列 NVIDIA显卡尚未被该驱动支持:
    RIVA TNT
    RIVA TNT2/TNT2 Pro
    RIVA TNT2 Ultra
    Vanta/Vanta LT
    RIVA TNT2 Model 64/Model 64 Pro
    Aladdin TNT2
    GeForce 256
    GeForce DDR
    Quadro
    GeForce2 GTS/GeForce2 Pro
    GeForce2 Ti
    GeForce2 Ultra
    Quadro2 Pro

    如果是这样,你需要修改 /boot/grub/grub.conf 文件,在里面加上 nouveau.modeset=0。(如果是 PAE 内核,还要加上 vmalloc=256m)
    以下是一个例子(请根据你的实际情况进行设置,不要照搬):
    title Fedora (2.6.31.1-56l.fc12.x86_64)
    kernel /vmlinuz-2.6.31.1-56.local.fc12.x86_64 ro root=UUID=XXX rhgb quiet nouveau.modeset=0
    initrd /initramfs-2.6.31.1-56.local.fc12.x86_64.img

    在使用驱动之前,你还需要启用 allow_execstack 以确保 SElinux 不去阻止驱动的运行:
    # setsebool -P allow_execstack on

    附:以上内容均翻译自 http://www.my-guides.net/en/content/view/174/26/2/4/#fedora_video_drivers_nvidia,并非我本人的安装经验。如有必要,请参照原文进行操作。

  18. thungoder 于 2009-11-21 13:22:51发表:

    [code][root@thlocal thung]# yum install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs
    已加载插件:allowdowngrade, fastestmirror, presto, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
    * fedora: mirrors.163.com
    * livna: rpm.livna.org
    * rpmfusion-free: mirror.web-ster.com
    * rpmfusion-free-updates: mirror.web-ster.com
    * rpmfusion-nonfree: mirror.web-ster.com
    * rpmfusion-nonfree-updates: mirror.web-ster.com
    * updates: ftp.riken.jp
    设置安装进程
    No package akmod-nvidia available.
    No package xorg-x11-drv-nvidia available.
    No package xorg-x11-drv-nvidia-libs available.
    无须任何处理
    [/code]这是怎么回事?

  19. linwhwylb 于 2009-11-21 13:08:52发表:

    升级系统就是麻烦。

  20. 奔豆100 于 2009-11-21 00:41:22发表:

    18# darkmoon


    在文本下安装时出现的,还是没安装成功。希望大大再帮看看

  21. darkmoon 于 2009-11-20 20:52:31发表:

    [i=s] 本帖最后由 darkmoon 于 2009-11-20 20:57 编辑 [/i]

    ERROR: Unable to find the kernel source tree for the currently running kernel.
    Please make sure you have installed the kernel source files for your
    kernel and that they are properly configured; on Red Hat Linux systems,
    for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
    installed.
    If you know the correct kernel source files are installed,
    you may specify the kernel source path with the '--kernel-source-path'
    command line option.

    说明没安装 kernel-devel
    输入 uname -a,如果有这个2.6.31.5-127.fc12.i686[color=Blue].PAE[/color]提示,那么就先安装 kernel-PAE-devel,
    命令是 su -c 'yum install kernel-PAE-devel'
    如果提示是2.6.31.5-127.fc12.i686,那么就安装kernel-devel,命令是su -c 'yum install kernel-devel'

    安装完成后和4楼说的做就好了

  22. 奔豆100 于 2009-11-20 19:58:01发表:

    15# 一米短绳


    贴上了,帮看看

  23. lijiang 于 2009-11-20 19:06:31发表:

    的确上火,我有切身经历。

  24. 一米短绳 于 2009-11-20 17:32:43发表:

    先把/var/log/nvidia……内容最后一页贴上来看看呗~~~

  25. 微宝贝 于 2009-11-20 16:55:48发表:

    引用:
    继续迷茫...杂安装个驱动那么难呢?:0w223dc
    奔豆100 发表于 2009-11-20 15:45

    搞清思路 仔细分析,一步一步来。到哪一步不行了,提示是什么么?

  26. 奔豆100 于 2009-11-20 16:08:28发表:

    引用:
    我没Windows用,不过还有几个Linux在那里放着……
    绿色圣光 发表于 2009-11-20 16:05


    厉害~~

  27. 绿色圣光 于 2009-11-20 16:05:50发表:

    我没Windows用,不过还有几个Linux在那里放着……

  28. 奔豆100 于 2009-11-20 16:02:08发表:

    这次很窝火
    暂时用w7过日子,等待...

  29. 绿色圣光 于 2009-11-20 15:52:35发表:

    引用:
    看来不止我一个人遇到问题 记得在11下很容易的一件事
    zhangzhaoi 发表于 2009-11-20 15:29

    当初Feodra11,我也是很容易就安装好了,怎么这次……

  30. 奔豆100 于 2009-11-20 15:45:44发表:

    继续迷茫...杂安装个驱动那么难呢?:0w223dc

  31. zhangzhaoi 于 2009-11-20 15:29:40发表:

    看来不止我一个人遇到问题 记得在11下很容易的一件事

  32. lfhlgx 于 2009-11-20 13:35:42发表:

    你还在运行X界面,肯定装不上的,得先关掉X界面,方法:sudo /etc/init.d/gdm stop,然后按ctrl+alt+F2切换到字符界面再安装

  33. 胡不归 于 2009-11-20 13:25:25发表:

    我是GeForce 8400mG,直接用源上的:
    yum install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs
    安装成功~~

  34. 奔豆100 于 2009-11-20 12:55:37发表:

    还是不行...

  35. darkmoon 于 2009-11-20 09:50:13发表:

    [i=s] 本帖最后由 darkmoon 于 2009-11-20 21:03 编辑 [/i]

    本本8600MGT显卡驱动安装成功

    显卡版本是190.42

    步骤是先按ctrl+alt+f2,然后登录,
    su -c 'init 3'
    su -c 'sh *.run' 这里需要先安装gcc和kernel-PAE-devel(这里要看你内核的版本,是PAE的要用前面的那个,不是的需要kernel-devel,命令是su -c 'yum install gcc kernel-PAE-devel')
    安装完成后不要重启电脑,输入su -c 'init 5'进入图形界面,然后应该就可以了的,
    如果重启后进入不了图形界面的话,按ctrl+alt+f2,然后输入su -c 'nvidia-uninstall'删除nvidia驱动,再su -c 'rm /etc/X11/xorg.conf',就可以重新进入图形界面了。
    PS:我装完驱动后立即重启,进不了图形界面,网上查资料说似乎是nouveau模块和nvidia模块冲突了,用添加blacklist和修改grub.conf的方法都没用,最后删除驱动,再重装驱动然后直接输入su -c 'init 5'就可以进入图形界面了。但是KMS还是不能启动

  36. marco.chan 于 2009-11-20 09:19:02发表:

    可能是xorg的问题!xorg1.6应该没问题,1.7就可能出现问题,对老显卡驱动不再支持了!

  37. 绿色圣光 于 2009-11-20 00:15:58发表:

    我也是这样……