[Debian] Драйвера Nvidia (Раньше ставил, сейчас не могу)

Knoppix

Модераторы: Warderer, Модераторы разделов

Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

[Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Здравствуйте, раньше устанавливал дрова к Nvidia, все проходило гладко, даже у этого дистрибутива. Сейчас устанавливаю драйвера sh........9629-pkg1.run, а мне в ответ "WARNING: Skipping the runlevel check (the utility `runlevel` failed to run)". Продолжаю установку и дальше вижу сообщение:
"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-headers установил, они находятся в каталоге /usr/src, там же лежит архив - Linux-source 2.6.18.tar.bz2
В логе написано:

Код:

nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Wed Sep 12 20:06:32 2007 option status: license pre-accepted : false update : false force update : false expert : false uninstall : false driver info : false precompiled interfaces : true no ncurses color : false query latest version : false OpenGL header files : true no questions : false silent : false no recursion : false no backup : false kernel module only : false sanity : false add this kernel : false no runlevel check : false no network : false no ABI note : false no RPMs : false no kernel module : false force SELinux : default no X server check : false force tls : (not specified) X install prefix : (not specified) X library install path : (not specified) X module install path : (not specified) OpenGL install prefix : (not specified) OpenGL install libdir : (not specified) utility install prefix : (not specified) utility install libdir : (not specified) doc install prefix : (not specified) kernel name : (not specified) kernel include path : (not specified) kernel source path : (not specified) kernel output path : (not specified) kernel install path : (not specified) proc mount point : /proc ui : (not specified) tmpdir : /tmp ftp mirror : ftp://download.nvidia.com RPM file list : (not specified) Using: nvidia-installer ncurses user interface WARNING: Skipping the runlevel check (the utility `runlevel` failed to run). -> License accepted. -> No precompiled kernel interface was found to match your kernel; would you li ke the installer to attempt to download a kernel interface for your kernel f rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No) -> No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface. -> Performing CC sanity check with CC="cc". -> Performing CC version 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.

Ни как не разберусь причем тут runlevel и чего я еще не установил, вроде делал все как писали на форуме и все равно ERROR.
Help me please!
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

проверь
/lib/modules/2.6.xx/build

должно указывать на папку с headers твоего ядра ( символ ссылка)
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Dudraug писал(а):
12.09.2007 20:45
проверь
/lib/modules/2.6.xx/build

должно указывать на папку с headers твоего ядра ( символ ссылка)

Все верно, так оно и есть. Но проблема остается проблемой, а runlevel может влиять на установку дров?
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

ldconfig - сделай

по идее ранлевел не влияет, главное что б установка проходила с отключеными иксами.
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Dudraug писал(а):
12.09.2007 20:55
ldconfig - сделай

по идее ранлевел не влияет, главное что б установка проходила с отключеными иксами.

Иксы отключены были
В терминале сделал ldconfig, а дальше что?
Можно ставить дрова?
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

ага
если не поможет, есть еще вариант, попробовать другие дрова
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Dudraug писал(а):
12.09.2007 20:59
ага
если не поможет, есть еще вариант, попробовать другие дрова

Дело в том что у меня много версий дров есть, но у меня MX440, поэтому 96 версия 9631 - это край.
Я что только не перепробовал.
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

еще поставь linux-tree-2.6.xx

Код: Выделить всё

aptitude search ~i | grep linux

сюда вывод
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Dudraug писал(а):
12.09.2007 21:04
еще поставь linux-tree-2.6.xx

Код: Выделить всё

aptitude search ~i | grep linux

сюда вывод

Вот:
i doc-linux-text - Linux HOWTOs and FAQs in ASCII format
i A foomatic-db - linuxprinting.org printer support - databai foomatic-db-engine - linuxprinting.org printer support - prograi foomatic-db-gutenprint - linuxprinting.org printer support - databai foomatic-db-hpijs - linuxprinting.org printer support - databai A foomatic-filters - linuxprinting.org printer support - filteri foomatic-filters-ppds - linuxprinting.org printer support - prebuii libselinux1 - SELinux shared libraries
i linux-headers-2.6-486 - Header files for Linux 2.6 on x86
i linux-headers-2.6.18-4 - Common header files for Linux 2.6.18
i linux-headers-2.6.18-4-486 - Header files for Linux 2.6.18 on x86
i linux-image-2.6-686 - Linux kernel 2.6 image on PPro/Celeron/PIIi linux-image-2.6.18-4-686 - Linux 2.6.18 image on PPro/Celeron/PII/PIIi linux-kbuild-2.6.18 - Kbuild infrastructure for Linux 2.6.18
i linux-kernel-headers - Linux Kernel Headers for development
i linux-patch-debian-2.6.18 - Debian patches to version 2.6.18 of the Lii A linux-sound-base - base package for ALSA and OSS sound systemi linux-source-2.6.18 - Linux kernel source for version 2.6.18 witi linux-tree-2.6.18 - Linux kernel source tree for building Debii python-selinux - Python bindings to SELinux shared librariei selinux-policy-refpolicy-target - Targeted variant of the SELinux reference
i util-linux - Miscellaneous system utilities
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

aptitude install linux-kbuild-2.6.18 kbuild

ldconfig

повтороить попытку установки драйвера
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Dudraug писал(а):
12.09.2007 21:17
aptitude install linux-kbuild-2.6.18 kbuild

ldconfig

повтороить попытку установки драйвера

Попытка не удалась, пишет все тоже "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."
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

у вас какое ядро стоит?
посмотрите по ТОЧНОМУ имени ядра там типо linux-image-2.6.18-4-686
что стоят ТАКИЕ же хедеры, иначе переставте
хотя как видно вроде все что надо стоит

меня смущает

i linux-image-2.6-686

и

i linux-headers-2.6-486
i linux-headers-2.6.18-4-486
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

не получается, что делать, теперь модуль не собирается:

Код:

> Kernel module compilation complete. 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. -> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko': -1 Invalid module format -> Kernel messages: input: PC Speaker as /class/input/input1 Real Time Clock Driver v1.12ac Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 parport: PnPBIOS parport detected. parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA] ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 193 PCI: Setting latency timer of device 0000:00:1f.5 to 64 input: ImPS/2 Logitech Wheel Mouse as /class/input/input2 ts: Compaq touchscreen protocol output intel8x0_measure_ac97_clock: measured 58912 usecs intel8x0: clocking to 48000 Adding 610428k swap on /dev/hda7. Priority:-1 extents:1 across:610428k loop: loaded (max 8 devices) device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com NTFS driver 2.1.27 [Flags: R/W MODULE]. NTFS volume version 3.1. NTFS volume version 3.1. eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 NET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver eth0: no IPv6 routers present nvidia: disagrees about version of symbol struct_module nvidia: disagrees about version of symbol struct_module 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.
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

а до этого собирался? или вылетал раньше?

aptitude install cpp-4.1 gcc-4.1

тут вроде написано юзать gcc той эе весрии которым ядро компилилось
то есть 4.1

ЗЫ Сории за опечатку было 4.2 у мну написано, уже исправил
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Dudraug писал(а):
12.09.2007 22:29
а до этого собирался? или вылетал раньше?

aptitude install cpp-4.1 gcc-4.1

тут вроде написано юзать gcc той эе весрии которым ядро компилилось
то есть 4.1

ЗЫ Сории за опечатку было 4.2 у мну написано, уже исправил

да раньше он вообще не находил kernel-source, там в логе написано
Спасибо сказали:
Аватара пользователя
Dudraug
Сообщения: 313
ОС: Debian lenny/sid

Re: [Debian] Драйвера Nvidia

Сообщение Dudraug »

ага, поставь компилятор версии 4.1
я думаю на этом все


Но если что не так то пиши сюда)

я немного не так сказал
лучше сделать
aptitude install gcc

но это если предыдущее не поможет
P4-3.0, ASUS P5GD1, 1024MB OЗУ, GeForce 6600GT
Спасибо сказали:
Аватара пользователя
Aectann
Бывший модератор
Сообщения: 3491
Статус: ...
ОС: OS X, GNU_и_не_только/Linux

Re: [Debian] Драйвера Nvidia

Сообщение Aectann »

0. Читать тему(желательно до конца).
1. Основные варианты указаны в теме, на которую я дал ссылку. Если нужна именно последняя версия драйверов, которая поддерживает вашу видеокарту, можно подключить репозиторий sid(unstable) и установить из него драйвера:

aptitude install nvidia-glx-legacy-96xx
My god... it's full of stars!...
Спасибо сказали:
Аватара пользователя
diesel
Бывший модератор
Сообщения: 5989
ОС: OS X, openSuSE, ROSA, Debian

Re: [Debian] Драйвера Nvidia

Сообщение diesel »

Mr_BBoy писал(а):
12.09.2007 22:36
Dudraug писал(а):
12.09.2007 22:29
а до этого собирался? или вылетал раньше?

aptitude install cpp-4.1 gcc-4.1

тут вроде написано юзать gcc той эе весрии которым ядро компилилось
то есть 4.1

ЗЫ Сории за опечатку было 4.2 у мну написано, уже исправил

да раньше он вообще не находил kernel-source, там в логе написано

если ядро дистрибъютивное то почему не поставить module-assistant и на воспользоваться m-a prepare которая как раз и устанавливает все необходимое для сборки в т.ч. и нужную версию компайлера, загловочные файлы ядра итп.

Буквально на прошлой неделе было ведь: Решено: [Debian] Debian Sid + nvidia
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

Aectann писал(а):
12.09.2007 23:03
0. Читать тему(желательно до конца).
1. Основные варианты указаны в теме, на которую я дал ссылку. Если нужна именно последняя версия драйверов, которая поддерживает вашу видеокарту, можно подключить репозиторий sid(unstable) и установить из него драйвера:

aptitude install nvidia-glx-legacy-96xx

Я раньше устанавливал эти же дрова на этом же компе в этом же дистрибутиве. И карточка у меня GeForce MX440 .
Он не ругается на версию дров, а вот:
ERROR: Unable to find the kernel source tree for the currently running kernel.

Dudraug писал(а):
12.09.2007 22:42
ага, поставь компилятор версии 4.1
я думаю на этом все


Но если что не так то пиши сюда)

я немного не так сказал
лучше сделать
aptitude install gcc

но это если предыдущее не поможет

У меня стоит версия gcc 4.1
Все равно не помогает.
Спасибо сказали:
Аватара пользователя
Mr_BBoy
Сообщения: 126
ОС: Mandriva 2008.1

Re: [Debian] Драйвера Nvidia

Сообщение Mr_BBoy »

если ядро дистрибъютивное то почему не поставить module-assistant и на воспользоваться m-a prepare которая как раз и устанавливает все необходимое для сборки в т.ч. и нужную версию компайлера, загловочные файлы ядра итп.

Буквально на прошлой неделе было ведь: Решено: [Debian] Debian Sid + nvidia

Все получилось, наконец - то.
Спасибо вам всем!
Спасибо сказали: