Niespe

Tematy związane z oprogramowaniem, instalacją, konfiguracją
jaskmar
Posty: 25
Rejestracja: 22 października 2010, 10:29

Niespełnione zależności w systemie po instalacji sterowników

Post autor: jaskmar »

Kombinowałem ostatnio trochę z instalacją różnych sterowników do karty graficznej i gnome3. W końcu aptitude i apt-get odmówiły posłuszeństwa przez zależności i pakiet-widmo glx-diversions. Przy każdej próbie instalacji czegokolwiek aptitude wyświetla coś takiego:

Kod: Zaznacz cały

(...) configured to not write apport reports
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
tes...
Reading task descriptions...
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 670 not upgraded.
Need to get 0 B/9474 B of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
  glx-diversions: PreDepends: nvidia-installer-cleanup but it is not going to be installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1)     glx-diversions              



Accept this solution? [Y/n/q/?]
Y
The following packages will be REMOVED:
  glx-diversions{a} 
0 packages upgraded, 0 newly installed, 1 to remove and 670 not upgraded.
Need to get 0 B of archives. After unpacking 16.4 kB will be freed.
Do you want to continue? [Y/n/?]
Y
Writing extended state information...
(Reading database ... 
(Reading database ... 5%
...
(Reading database ... 100%
(Reading database ... 120465 files and directories currently installed.)
Removing glx-diversions ...
Removing 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/mesa-diverted/libGL.so.1.2 by glx-diversions'
dpkg-divert: rename involves overwriting `/usr/lib/libGL.so.1.2' with
  different file `/usr/lib/mesa-diverted/libGL.so.1.2', not allowed
dpkg: error processing glx-diversions (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 glx-diversions
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
apt-get twierdzi, że nie znajduje pakietu glx-diversions.

Nie pomaga:

Kod: Zaznacz cały

aptitude install -f
aptitude autoclean
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Pokaż wynik:

Kod: Zaznacz cały

dpkg-divert --list
jaskmar
Posty: 25
Rejestracja: 22 października 2010, 10:29

Post autor: jaskmar »

Wynik polecenia:

Kod: Zaznacz cały

diversion of /usr/lib/libGL.so to /usr/lib/mesa-diverted/libGL.so by glx-diversions
diversion of /usr/lib/libGL.so.1 to /usr/lib/mesa-diverted/libGL.so.1 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1.2 to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so by glx-diversions
diversion of /usr/share/man/man8/update-icon-caches.8.gz to /usr/share/man/man8/update-icon-caches.gtk2.8.gz by libgtk-3-bin
diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash
diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel
diversion of /usr/lib/i386-linux-gnu/libGL.so.1.2 to /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1 by glx-diversions
diversion of /usr/lib/libGL.so.1.2 to /usr/lib/mesa-diverted/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so by glx-diversions
diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common
diversion of /bin/sh to /bin/sh.distrib by dash
diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Spróbuj:

Kod: Zaznacz cały

dpkg-divert --remove /usr/lib/libGL.so.1.2
jaskmar
Posty: 25
Rejestracja: 22 października 2010, 10:29

Post autor: jaskmar »

Dziękuję, zadziałało. Tylko szkoda, że nie bardzo wiem co zrobiłem?

Pojawił się drugi problem:

Próbuję instalować sterownik do grafiki od AMD a instalator się czepia:

Kod: Zaznacz cały

Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers.  /lib/modules/2.6.32-5-amd64/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.

Więc próbuję zainstalować linux-headers:

Kod: Zaznacz cały

# aptitude install linux-headers-2.6.32-5-amd64
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
The following NEW packages will be installed:
  cpp-4.3{a} gcc-4.3{a} gcc-4.3-base{a} linux-headers-2.6.32-5-amd64 
  linux-headers-2.6.32-5-common{a} linux-kbuild-2.6.32{a} 
0 packages upgraded, 6 newly installed, 0 to remove and 670 not upgraded.
Need to get 238 kB/10.7 MB of archives. After unpacking 35.7 MB will be used.
The following packages have unmet dependencies:
  libstdc++6: Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
  libgomp1: Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
  libgcc1: Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     gcc-4.3 [Not Installed]                            
2)     linux-headers-2.6.32-5-amd64 [Not Installed]       



Accept this solution? [Y/n/q/?]
Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 670 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Writing extended state information...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...

Nie przynosi to żadnego skutku, linux headers jak nie było tak nie ma. Z tego co widzę mam wersję 2.6 i 3.2.0-3:

Kod: Zaznacz cały

# aptitude search linux-headers
v   linux-headers                   -                                           
v   linux-headers-2.6               -                                           
i   linux-headers-2.6-amd64         - Header files for Linux amd64 configuration
p   linux-headers-2.6-openvz-amd64  - Header files for Linux 2.6-openvz-amd64 (m
p   linux-headers-2.6-vserver-amd64 - Header files for Linux 2.6-vserver-amd64 (
p   linux-headers-2.6-xen-amd64     - Header files for Linux 2.6-xen-amd64 (meta
p   linux-headers-2.6.32-5-all      - All header files for Linux 2.6.32 (meta-pa
p   linux-headers-2.6.32-5-all-amd6 - All header files for Linux 2.6.32 (meta-pa
p   linux-headers-2.6.32-5-amd64    - Header files for Linux 2.6.32-5-amd64     
p   linux-headers-2.6.32-5-common   - Common header files for Linux 2.6.32-5    
p   linux-headers-2.6.32-5-common-o - Common header files for Linux 2.6.32-5-ope
p   linux-headers-2.6.32-5-common-v - Common header files for Linux 2.6.32-5-vse
p   linux-headers-2.6.32-5-common-x - Common header files for Linux 2.6.32-5-xen
p   linux-headers-2.6.32-5-openvz-a - Header files for Linux 2.6.32-5-openvz-amd
p   linux-headers-2.6.32-5-vserver- - Header files for Linux 2.6.32-5-vserver-am
p   linux-headers-2.6.32-5-xen-amd6 - Header files for Linux 2.6.32-5-xen-amd64 
p   linux-headers-3.2.0-3-all       - All header files for Linux 3.2 (meta-packa
p   linux-headers-3.2.0-3-all-amd64 - All header files for Linux 3.2 (meta-packa
i A linux-headers-3.2.0-3-amd64     - Header files for Linux 3.2.0-3-amd64      
i A linux-headers-3.2.0-3-common    - Common header files for Linux 3.2.0-3     
p   linux-headers-3.2.0-3-common-rt - Common header files for Linux 3.2.0-3-rt  
p   linux-headers-3.2.0-3-rt-amd64  - Header files for Linux 3.2.0-3-rt-amd64   
i   linux-headers-amd64             - Header files for Linux amd64 configuration
p   linux-headers-rt-amd64          - Header files for Linux rt-amd64 configurat
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

  1. Co to za wersja Debiana?
  2. Przedstaw wynik polecenia:

    Kod: Zaznacz cały

    uname -r
jaskmar
Posty: 25
Rejestracja: 22 października 2010, 10:29

Post autor: jaskmar »

Squeeze. Dodawałem repozytoria z pakietami eksperymentalnymi żeby zainstalować gnome3. Wersję jajka dokładną zaraz podam bo przełączam się między systemami (nie mogę uruchomić aktualnie środowiska graficznego w Debianie).

Edycja:
2.6.32-5-amd64
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Nie chce mi się przeglądać listy z zależnościami, ale bardzo możliwe że z nowym gnome zainstalowałeś nowszą wersję libstdc++6. Mieszanie systemów to bardzo zły pomysł zwłaszcza z tak rozbudowanymi pakietami jak gnome. Musisz się zdecydować albo Squeeze, albo Sheezy albo Sid. Gnome3 jest już w Wheezy, więc może zrób aktualizację do Wheezy.
jaskmar
Posty: 25
Rejestracja: 22 października 2010, 10:29

Post autor: jaskmar »

Tak też chyba zrobię. A lepiej Wheezy czy sid? Wheezy ma być teraz jakoś w wersji stabilnej?
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Najlepiej zrób aktualizację do wersji testowej, przydałoby się też usunąć gnome3 i inne pakiety z wersji niestabilnej i zastąpić je tymi z testowej.
ODPOWIEDZ