红联Linux门户
Linux帮助

fedora 12安装nvidia驱动出错,特来求助!

发布时间:2009-11-18 19:47:03来源:红联作者:iejwduan
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).

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.
文章评论

共有 6 条评论

  1. love35459 于 2010-10-25 18:57:14发表:

    在安装.run结尾时
    出现错误

  2. miucat 于 2009-11-27 10:15:33发表:

    按照txx123h的方法显卡安装成功,感谢一下。

  3. ruanxudong 于 2009-11-25 09:40:23发表:

    我也是
    提示缺少gcc,我安装了以后有提示缺失kernel-devel,再次按装了以后,还是提示缺失kernel-devel,郁闷阿

  4. txx123h 于 2009-11-20 12:49:10发表:

    首次安装

    1.到 nvnews 上下载 190.42 版驱动。得到一个以 run 结尾的安装文件,赋予它可执行权限。

    chmod +x NVIDIA-Linux-x86-190.42-pkg0.run

    2.编辑 /etc/modprobe.d/blacklist.conf 文件,以阻止 nouveau 模块的加载。

    su -c 'vi /etc/modprobe.d/blacklist.conf'

    在文件末尾添加

    blacklist nouveau

    保存退出。

    3.编辑 /etc/grub.conf 文件,禁止 nouveau KMS 的使用。

    su -c 'vi /etc/grub.conf'



    kernel /vmlinuz-2.6.31.1-56.fc12.i686.PAE ro root=UUID=0a86cf1f-ea02-4016-9c15-c9c537489eaf LANG=zh_CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet

    修改成

    kernel /vmlinuz-2.6.31.1-56.fc12.i686.PAE ro root=UUID=0a86cf1f-ea02-4016-9c15-c9c537489eaf LANG=zh_CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet nouveau.modeset=0

    保存退出。

    4.重新启动,由于显卡驱动的安装无法 X 服务运行时进行,所以需要进入运行级别 3 。在品牌 Logo 出现后按 ESC 键进入 GRUB 界面,在选择内核,按 e 键进行编辑,在 kernel 行未添加 3 这个参数。

    比如我的 kernel 行就是从

    kernel /vmlinuz-2.6.31.1-56.fc12.i686.PAE ro root=UUID=0a86cf1f-ea02-4016-9c15-c9c537489eaf LANG=zh_CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet

    修改成

    kernel /vmlinuz-2.6.31.1-56.fc12.i686.PAE ro root=UUID=0a86cf1f-ea02-4016-9c15-c9c537489eaf LANG=zh_CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet 3

    完成后按 Enter 退出编辑模式,按 b 键引导。

    5.在字符终端下登录,进入放置安装文件的目录,使用以下命令启动安装文件。

    su -c './NVIDIA-Linux-x86-190.42-pkg0.run'

    按照提示一步步进行。

    6.如果看见 Nvidia 的 Logo 表明 Nvidia 运行正常。

    至此 Nvidia 官方驱动安装完成。

  5. 一米短绳 于 2009-11-18 20:33:10发表:

    冲突了吧……原本就有显卡驱动……

    我瞎说的……

  6. zhengbin78 于 2009-11-18 19:53:12发表:

    是这样的,用官方的好像是会出错,可以改用 http://rpmfusion.org/ 提供的rpm进行安装。
    设置yum也可以方便安装nvidia驱动。
    安装完成后也需要注意,按论坛之前的帖子要求关闭原有的nouveau功能。