我按照以下链接在 Ubuntu 12.10 上安装 Nvidia 驱动程序
http://ubuntuforums.org/showthread.php?t=813931&highlight=nvidia#post_5086971
但我不知道为什么我会收到“安装失败”的错误。
我必须注意,我在第 6 步没有找到 xorg.conf
这是来自 nvidia-installer.log 文件的安装日志:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Jan 13 19:28:43 2014
installer version: 331.20
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 331.20.
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed! Continue installation anyway? (Answer: Yes)
-> Performing CC sanity check with CC="cc".
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.
答案1
答案就在错误信息中:
请确保你已经安装了内核的内核源文件
这很简单。实际上你不需要完整的源代码,只需要标题:
sudo apt-get install linux-headers-generic
另外,请谨慎遵循指南。如果它与图形有关并且已超过 12 个月,则它可能已开始落后于当前状态。