`startx` 失败。无法通过名称=‘nvidia_304’找到模块

`startx` 失败。无法通过名称=‘nvidia_304’找到模块

我得到这个输出:

$ startx
X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-70-generic x86_64 Ubuntu
Current Operating System: Linux gcomputer 3.2.0-59-lowlatency #61-Ubuntu SMP PREEMPT Tue Jan 28 09:16:18 UTC 2014 x86_64
Kernel command line: root=UUID=56fc92d2-1903-4263-b88e-d09bc15ef1d3 ro quiet splash 
Build Date: 10 December 2014  06:15:52PM
xorg-server 2:1.15.1-0ubuntu2.6 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.30.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Dec 23 13:32:06 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='nvidia_304'
modprobe: ERROR: could not insert 'nvidia_304': Function not implemented
modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='nvidia_304'
modprobe: ERROR: could not insert 'nvidia_304': Function not implemented
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "PC_RALT_LEVEL2" has 2 levels, but <LALT> has 3 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.

xinit: unexpected signal 2

不确定这是什么意思。nvidia-304 已安装。虽然我不确定这是否是正确的驱动程序和/或它是否已正确安装到正确的 Xorg+kernel(我该如何检查?)。我以为我已经重置了所有设置(在/etc),但是,不确定(我该如何检查?)。

答案1

我遇到了同样的问题,但仅限于 nvidia-304 驱动程序。较新的 nvidia-346 驱动程序来自xorg-edgers工作正常。我通过运行以下命令(按顺序)解决了该问题:

  1. sudo apt-get remove --purge nvidia*
  2. sudo add-apt-repository ppa:xorg-edgers/ppa
  3. sudo apt-get update
  4. sudo apt-get install nvidia-346

之后,我的机器完美地运行了 Nvidia 显卡。希望它也能为你工作。

答案2

我也遇到了同样的问题。根本原因是:

  • 升级后 Nvidia 驱动程序损坏

解决方案是找到所有 Nvidia 包并将其删除。

寻找:

dpkg -l | grep -i nvidia

消除:

sudo apt-get remove --purge nvidia-*
reboot

答案3

15.10 也有同样的问题。有错误/var/log/lightdm/x-0.log

ERROR: could not insert 'nvidia_304': Function not implemented
  1. 我确实安装了NVIDIA-346作为justathoughtor2 描述道,但重启后没有结果。此外4.2.0-17内核是在 346 安装期间安装的。

  2. 之后我清除了 Nvidia 驱动程序

    sudo apt-get purge nvidia*
    

    重新启动后,可以登录图形会话 - 使用了 Nouveau 驱动程序。它运行良好,不像往常那样缓慢且有缺陷。

  3. 但我尝试选择已测试 Nvidia 304.128在驱动程序 GUI 中,重新启动后它可以根据需要工作,没有错误!

相关内容