Problemy z instalacj

Pomoc dotycząca instalacji systemu
wasilo
Posty: 77
Rejestracja: 27 września 2007, 21:21
Lokalizacja: Polska/Europa/¦wiat

Problemy z instalacją linux-headers i sterownika NVIDIA

Post autor: wasilo »

Witam.
Od dwóch dni siedzę nad instalacją sterownika karty graficznej, ale nic nie mogę zrobić.
Po próbie instalacji linux-headers wyskakuje mi coś takiego:

Kod: Zaznacz cały

debian:/home/wasilo# apt-get install linux-headers
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Pakiet linux-headers jest pakietem wirtualnym zapewnianym przez:
  linux-headers-2.6.30-1-amd64 2.6.30-6
  linux-headers-2.6.30-1-686-bigmem 2.6.30-6
  linux-headers-2.6.30-1-686 2.6.30-6
  linux-headers-2.6.30-1-486 2.6.30-6
  linux-headers-2.6-amd64 2.6.30+20
  linux-headers-2.6-686-bigmem 2.6.30+20
  linux-headers-2.6-686 2.6.30+20
  linux-headers-2.6-486 2.6.30+20
Należy jednoznacznie wybrać jeden z nich do instalacji.
E: Pakiet linux-headers nie ma kandydata do instalacji
Wybranie któregokolwiek pakietu nie przynosi rezultatu, bo sterownik nvidia ciągle nie chce się instalować.
Jak wklepię

Kod: Zaznacz cały

 debian:/home/wasilo# apt-get install linux-headers-`uname -r`
to wyskakuje mi:

Kod: Zaznacz cały

debian:/home/wasilo# apt-get install linux-headers-`uname -r`
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
E: Nie udało się odnaleźć pakietu linux-headers-2.6.26-2-686
debian:/home/wasilo#
Oto log z instalacji:

Kod: Zaznacz cały

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Oct  1 16:44:58 2009
installer version: 1.0.7

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
  no cc version 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              : [url]ftp://download.nvidia.com[/url]
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 185.18.36.
-> 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 ([url]ftp://download.nvidia.com[/url])? (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".
-> The CC version check failed:
   
   The compiler used to compile the kernel (gcc 4.1) does not exactly match the
   current compiler (gcc 4.3).  The Linux 2.6 kernel module loader rejects kern
   el modules built with a version of gcc that does not exactly match that of t
   he compiler used to build the running kernel.
   
   If you know what you are doing and want to ignore the gcc version check, sel
   ect "No" to continue installation.  Otherwise, select "Yes" to abort install
   ation, set the CC environment variable to the name of the compiler used to c
   ompile your kernel, and restart installation.  Abort now? (Answer: No)
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 [url]www.nvidia.com[/url].
ArnVaker

Post autor: ArnVaker »

Diagnoza: masz jajko z Lennego a repozytoria dla Squeeze.
wasilo
Posty: 77
Rejestracja: 27 września 2007, 21:21
Lokalizacja: Polska/Europa/¦wiat

Post autor: wasilo »

ArnVaker pisze:Diagnoza: masz jajko z Lennego a repozytoria dla Squeeze.
Wczoraj zainstalowałem Lennego, a później zmieniłem repo na Squeeze i zrobiłem aktualizację. Jajko samo się nie aktualizuje?
ArnVaker

Post autor: ArnVaker »

Jak widać nie zaktualizowało się. Jeśli miałbyś w systemie pakiet linux-image-2.6-amd64/686, to nowy kernel zostałby zainstalowany jako zależność przy aktualizacji tego pakietu (chyba). Co tu dużo gadać, zainstaluj po prostu jajko linux-image-2.6.30-1-686.
wasilo
Posty: 77
Rejestracja: 27 września 2007, 21:21
Lokalizacja: Polska/Europa/¦wiat

Post autor: wasilo »

Kod: Zaznacz cały

debian:/home/wasilo# apt-get install linux-image-2.6.30-1-686
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
linux-image-2.6.30-1-686 jest już w najnowszej wersji.
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 1 nieaktualizowanych.
ArnVaker

Post autor: ArnVaker »

Czyli masz nowe jajko, a siedzisz na starym? Sprawdź:

Kod: Zaznacz cały

dpkg -l |grep linux-image
uname -r
wasilo
Posty: 77
Rejestracja: 27 września 2007, 21:21
Lokalizacja: Polska/Europa/¦wiat

Post autor: wasilo »

Kod: Zaznacz cały

wasilo@debian:~$ dpkg -l |grep linux-image
ii  linux-image-2.6-686                  2.6.30+20                    Linux 2.6 image on PPro/Celeron/PII/PIII/P4
ii  linux-image-2.6.26-2-686             2.6.26-19                    Linux 2.6.26 image on PPro/Celeron/PII/PIII/
ii  linux-image-2.6.30-1-686             2.6.30-6                     Linux 2.6.30 image on PPro/Celeron/PII/PIII/
ArnVaker

Post autor: ArnVaker »

Zapomniałeś o:

Kod: Zaznacz cały

uname -r

To akurat w tym przypadku najważniejsze. ;-)
wasilo
Posty: 77
Rejestracja: 27 września 2007, 21:21
Lokalizacja: Polska/Europa/¦wiat

Post autor: wasilo »

Całość wygląda tak:

Kod: Zaznacz cały

wasilo@debian:~$ dpkg -l |grep linux-image
ii  linux-image-2.6-686                  2.6.30+20                    Linux 2.6 image on PPro/Celeron/PII/PIII/P4
ii  linux-image-2.6.26-2-686             2.6.26-19                    Linux 2.6.26 image on PPro/Celeron/PII/PIII/
ii  linux-image-2.6.30-1-686             2.6.30-6                     Linux 2.6.30 image on PPro/Celeron/PII/PIII/
wasilo@debian:~$ uname -r
2.6.26-2-686
wasilo@debian:~$
ArnVaker

Post autor: ArnVaker »

No to zagadka rozwiązana, siedzisz na starym kernelu... Uruchom ponownie komputer, tym razem na nowym kernelu. Nie powinno być już problemu z instalacją nagłówków w ten sposób:

Kod: Zaznacz cały

apt-get install linux-headers-`uname -r` 
ODPOWIEDZ