Strona 1 z 3

[+] apt-get, nie chce nic instalować po aktualizacji

: 21 lutego 2011, 17:24
autor: jacexx
Witam.
Wczoraj wieczorem chciałem doinstalować X na pracującym Debianie 64 bit Squezze, po wpisaniu:

Kod: Zaznacz cały

apt-get update && apt-get install xserver-xorg xbase-clients xfonts-base xterm
a następnie:

Kod: Zaznacz cały

apt-get install gnome-core
Apt zaczął pobierać jakieś >300 MB z internetu, i zostawiłem to na noc. Rano wyglądało jakby wszystko się zainstalowało i chcąc doinstalować vnc4erver otrzymałem komunikat, iż instalacja nie jest możliwa ponieważ istnieje zbyt dużo niespełnionych zależności.

Kod: Zaznacz cały

Wystąpiły błędy podczas przetwarzania:^M
 dbus^M
 dbus-x11^M
 gconf2-common^M
 libgconf2-4^M
 libedataserver1.2-13^M
 libcamel1.2-14^M
 libebackend1.2-0^M
 libebook1.2-9^M
 libecal1.2-7^M
 libedataserverui1.2-8^M
 libegroupwise1.2-13^M
 libgnome-desktop-2-17^M
 libgtkhtml3.14-19^M
 libgtkhtml-editor0^M
 libunique-1.0-0^M
 libevolution^M
 libsoup-gnome2.4-1^M
 gconf2^M
 libgweather-common^M
 libgweather1^M
 libedata-book1.2-2^M
 libedata-cal1.2-7^M
 evolution-data-server^M
 evolution^M
 udisks^M
 libgdu0^M
 gvfs^M
 brasero-common^M
libtotem-plparser17^M
 libbrasero-media0^M
 brasero^M
 capplets-data^M
 consolekit^M
 python-gconf^M
 libgnomevfs2-common^M
 libgnomevfs2-0^M
 libgnome2-common^M
 libgnome2-0^M
 libbonoboui2-0^M
 libgnomeui-0^M
 libpanel-applet2-0^M
 python-gnome2^M
 python-gnomeapplet^M
 python-gnomedesktop^M
 deskbar-applet^M
 eog^M
 epiphany-browser-data^M
 epiphany-browser^M
 evince^M
 evolution-plugins^M
 evolution-webcal^M
Przetwarzanie zostało zatrzymane z powodu wystąpienia zbyt wielu błędów.
Apt pokazuje, iż jest 320 pakietów nie do końca zainstalowanych lub usuniętych, polecenie:

Kod: Zaznacz cały

apt-get install -f
nie działa. Aptitude też wyświetla komunikat, iż przerwano prace z powodu zbyt dużej liczby błędów. Czy można jakoś oczyścić bufor apta, czy można jakoś go przeinstalować, bardzo proszę o pomoc. Wpisanie:

Kod: Zaznacz cały

apt-get remove gnome-core
też nie przynosi żadnych efektów z powodu błędów.

: 21 lutego 2011, 19:41
autor: DaVidoSS
Musisz dokończyć konfigurowanie pakietów.

Kod: Zaznacz cały

su
dpkg --configure -a
apt-get -f install

: 21 lutego 2011, 20:18
autor: pioruns
Warto by też było przejrzeć logi instalacyjne w

Kod: Zaznacz cały

/var/log/dpkg.log
Napisałeś:
Rano wyglądało jakby wszystko się zainstalowało
A masz logi terminala z tamtej sesji?

: 22 lutego 2011, 14:12
autor: jacexx
Logów z tamtego terminala brak. Natomiast udało mi się za pomocą aptitude odinstalować wszystkie pakiety z którymi był problem. Niestety kolejna instalacją również kończy się błędami. Zamieszczam logi z dpkg

Kod: Zaznacz cały

2011-02-21 21:53:06 install libgdata7 0.6.4-2 0.6.4-2
2011-02-21 21:53:06 status half-installed libgdata7 0.6.4-2
2011-02-21 21:53:06 status unpacked libgdata7 0.6.4-2
2011-02-21 21:53:06 status unpacked libgdata7 0.6.4-2
2011-02-21 21:53:06 install libgnomevfs2-extra 1:2.24.3-1 1:2.24.3-1
2011-02-21 21:53:06 status half-installed libgnomevfs2-extra 1:2.24.3-1
2011-02-21 21:53:06 status unpacked libgnomevfs2-extra 1:2.24.3-1
2011-02-21 21:53:06 status unpacked libgnomevfs2-extra 1:2.24.3-1
2011-02-21 21:53:06 install totem-plugins <brak> 2.30.2-6
2011-02-21 21:53:06 status half-installed totem-plugins 2.30.2-6
2011-02-21 21:53:06 status unpacked totem-plugins 2.30.2-6
2011-02-21 21:53:06 status unpacked totem-plugins 2.30.2-6
2011-02-21 21:53:06 install totem-coherence <brak> 2.30.2-6
2011-02-21 21:53:06 status half-installed totem-coherence 2.30.2-6
2011-02-21 21:53:06 status unpacked totem-coherence 2.30.2-6
2011-02-21 21:53:06 status unpacked totem-coherence 2.30.2-6
2011-02-21 21:53:06 trigproc python-central 0.6.16+nmu1 0.6.16+nmu1
2011-02-21 21:53:06 status half-configured python-central 0.6.16+nmu1
2011-02-21 21:53:06 status installed python 2.6.6-3+squeeze5
2011-02-21 21:53:08 status installed python-central 0.6.16+nmu1
2011-02-21 21:53:08 trigproc man-db 2.5.2-5 2.5.2-5
2011-02-21 21:53:08 status half-configured man-db 2.5.2-5
2011-02-21 21:53:09 status installed man-db 2.5.2-5
2011-02-21 21:53:09 trigproc gnome-icon-theme 2.30.3-2 2.30.3-2
2011-02-21 21:53:09 status half-configured gnome-icon-theme 2.30.3-2
2011-02-21 21:53:10 status installed gnome-icon-theme 2.30.3-2
2011-02-21 21:53:10 trigproc desktop-file-utils 0.15-2 0.15-2
2011-02-21 21:53:10 status half-configured desktop-file-utils 0.15-2
2011-02-21 21:53:10 status installed desktop-file-utils 0.15-2
2011-02-21 21:53:10 trigproc gnome-menus 2.30.3-1 2.30.3-1
2011-02-21 21:53:10 status half-configured gnome-menus 2.30.3-1
2011-02-21 21:53:10 status installed gnome-menus 2.30.3-1
2011-02-21 21:53:10 trigproc menu 2.1.44 2.1.44
2011-02-21 21:53:10 status half-configured menu 2.1.44
2011-02-21 21:53:11 status installed menu 2.1.44
2011-02-21 21:53:11 trigproc hicolor-icon-theme 0.12-1 0.12-1
2011-02-21 21:53:11 status half-configured hicolor-icon-theme 0.12-1
2011-02-21 21:53:11 status installed hicolor-icon-theme 0.12-1
2011-02-21 21:53:11 trigproc shared-mime-info 0.71-4 0.71-4
2011-02-21 21:53:11 status half-configured shared-mime-info 0.71-4
2011-02-21 21:53:12 status installed shared-mime-info 0.71-4
2011-02-21 21:53:12 trigproc libglib2.0-0 2.24.2-1 2.24.2-1
2011-02-21 21:53:12 status half-configured libglib2.0-0 2.24.2-1
2011-02-21 21:53:12 status installed libglib2.0-0 2.24.2-1
2011-02-21 21:53:12 startup packages configure
2011-02-21 21:53:12 configure dbus 1.2.24-4 1.2.24-4
2011-02-21 21:53:12 status unpacked dbus 1.2.24-4
2011-02-21 21:53:12 status unpacked dbus 1.2.24-4
2011-02-21 21:53:12 status unpacked dbus 1.2.24-4
2011-02-21 21:53:12 status unpacked dbus 1.2.24-4
2011-02-21 21:53:12 status unpacked dbus 1.2.24-4
2011-02-21 21:53:12 status half-configured dbus 1.2.24-4
2011-02-21 21:53:13 startup packages configure
2011-02-21 21:53:13 configure dbus 1.2.24-4 1.2.24-4
2011-02-21 21:53:13 status half-configured dbus 1.2.24-4
2011-02-21 22:04:07 status triggers-pending python-central 0.6.16+nmu1
2011-02-21 22:04:07 status triggers-awaited python 2.6.6-3+squeeze5
2011-02-21 22:04:07 startup packages configure
2011-02-21 22:04:07 configure dbus 1.2.24-4 1.2.24-4
2011-02-21 22:04:07 status half-configured dbus 1.2.24-4
2011-02-21 22:04:08 trigproc python-central 0.6.16+nmu1 0.6.16+nmu1
2011-02-21 22:04:08 status half-configured python-central 0.6.16+nmu1
2011-02-21 22:04:08 status installed python 2.6.6-3+squeeze5
2011-02-21 22:04:08 status installed python-central 0.6.16+nmu1
2011-02-22 07:27:34 startup packages configure
2011-02-22 07:27:34 configure dbus 1.2.24-4 1.2.24-4
2011-02-22 07:27:34 status half-configured dbus 1.2.24-4
Serwer:/home/jnyc# vim /var/log/dpkg.log
2011-02-21 21:53:04 status unpacked gstreamer0.10-plugins-good 0.10.24-1
2011-02-21 21:53:04 status unpacked gstreamer0.10-plugins-good 0.10.24-1
2011-02-21 21:53:04 install gvfs-backends <brak> 1.6.4-3
2011-02-21 21:53:04 status half-installed gvfs-backends 1.6.4-3
2011-02-21 21:53:04 status unpacked gvfs-backends 1.6.4-3
2011-02-21 21:53:04 status unpacked gvfs-backends 1.6.4-3
2011-02-21 21:53:04 install totem-common <brak> 2.30.2-6
2011-02-21 21:53:04 status half-installed totem-common 2.30.2-6
2011-02-21 21:53:04 status half-installed totem-common 2.30.2-6
2011-02-21 21:53:04 status half-installed totem-common 2.30.2-6
2011-02-21 21:53:04 status unpacked totem-common 2.30.2-6
2011-02-21 21:53:04 status unpacked totem-common 2.30.2-6
2011-02-21 21:53:04 install totem 2.30.2-6 2.30.2-6
2011-02-21 21:53:04 status half-installed totem 2.30.2-6
2011-02-21 21:53:04 status half-installed totem 2.30.2-6
2011-02-21 21:53:04 status half-installed totem 2.30.2-6
2011-02-21 21:53:04 status half-installed totem 2.30.2-6
2011-02-21 21:53:04 status unpacked totem 2.30.2-6
2011-02-21 21:53:04 status unpacked totem 2.30.2-6
2011-02-21 21:53:04 install gnome-core <brak> 1:2.30+7
2011-02-21 21:53:04 status half-installed gnome-core 1:2.30+7
2011-02-21 21:53:04 status unpacked gnome-core 1:2.30+7
2011-02-21 21:53:04 status unpacked gnome-core 1:2.30+7
2011-02-21 21:53:05 install gnome-dictionary 2.30.0-2 2.30.0-2
2011-02-21 21:53:05 status half-installed gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 status half-installed gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 status half-installed gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 status half-installed gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 status half-installed gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 status unpacked gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 status unpacked gnome-dictionary 2.30.0-2
2011-02-21 21:53:05 install gnome-media-common <brak> 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media-common 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media-common 2.30.0-1
2011-02-21 21:53:05 status unpacked gnome-media-common 2.30.0-1
2011-02-21 21:53:05 status unpacked gnome-media-common 2.30.0-1
2011-02-21 21:53:05 install libgnome-media0 2.30.0-1 2.30.0-1
2011-02-21 21:53:05 status half-installed libgnome-media0 2.30.0-1
2011-02-21 21:53:05 status unpacked libgnome-media0 2.30.0-1
2011-02-21 21:53:05 status unpacked libgnome-media0 2.30.0-1
2011-02-21 21:53:05 install gnome-media 2.30.0-1 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media 2.30.0-1
2011-02-21 21:53:05 status half-installed gnome-media 2.30.0-1
2011-02-21 21:53:05 status unpacked gnome-media 2.30.0-1
2011-02-21 21:53:05 status unpacked gnome-media 2.30.0-1
2011-02-21 21:53:05 install gnome-netstatus-applet 2.28.1-1 2.28.1-1
2011-02-21 21:53:05 status half-installed gnome-netstatus-applet 2.28.1-1
2011-02-21 21:53:05 status half-installed gnome-netstatus-applet 2.28.1-1
2011-02-21 21:53:06 status unpacked gnome-netstatus-applet 2.28.1-1
2011-02-21 21:53:06 status unpacked gnome-netstatus-applet 2.28.1-1
2011-02-21 21:53:06 install gnome-system-monitor 2.28.1-1 2.28.1-1
2011-02-21 21:53:06 status half-installed gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 status half-installed gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 status half-installed gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 status half-installed gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 status half-installed gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 status unpacked gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 status unpacked gnome-system-monitor 2.28.1-1
2011-02-21 21:53:06 install libgdata7 0.6.4-2 0.6.4-2
2011-02-21 21:53:06 status half-installed libgdata7 0.6.4-2
Dodam tylko, iż są to logi po ostatniej próbie instalacji gnome-core.

Właśnie ustaliłem, że problem jest z instalacją pakietu dbus, który występuje jako pierwszy przy aplikacjach, których nie można było skonfigurować. Polecenie

Kod: Zaznacz cały

aptitude install dbus
wyświetla następujący komunikat:

Kod: Zaznacz cały

Serwer:/home/jnyc# aptitude install dbus
Następujące NOWE pakiety zostaną zainstalowane:
  dbus
0 pakietów aktualizowanych, 1 instalowanych, 0 do usunięcia i 178 nie aktualizowanych.
Do pobrania 0 B/235 kB archiwów. Zajęte po rozpakowaniu: 643 kB.
Zaznaczenie poprzednio niezaznaczonego pakietu dbus.
(Odczytywanie bazy danych ... 86517 files and directories currently installed.)
Rozpakowanie dbus (z .../dbus_1.2.24-4_amd64.deb) ...
Przetwarzanie wyzwalaczy dla man-db...
Konfigurowanie dbus (1.2.24-4) ...
chown: błędna grupa: `root:messagebus'
dpkg: błąd przetwarzania dbus (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
configured to not write apport reports
                                      Wystąpiły błędy podczas przetwarzania:
 dbus
E: Sub-process /usr/bin/dpkg returned an error code (1)
W czasie instalacji wystąpiły problemy. Próba naprawy:
Konfigurowanie dbus (1.2.24-4) ...
chown: błędna grupa: `root:messagebus'
dpkg: błąd przetwarzania dbus (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
 dbus
Dodane:
Teraz po próbie instalacji paczki z dbus otrzymuje komunikat:

Kod: Zaznacz cały

Serwer:/home/jnyc# dpkg -i dbus_1.2.24-4_amd64.deb
Zaznaczenie poprzednio niezaznaczonego pakietu dbus.
(Odczytywanie bazy danych ... 86522 files and directories currently installed.)
Rozpakowanie dbus (z dbus_1.2.24-4_amd64.deb) ...
Konfigurowanie dbus (1.2.24-4) ...
Instalowanie nowej wersji pliku konfiguracyjnego /etc/dbus-1/session.conf ...
Instalowanie nowej wersji pliku konfiguracyjnego /etc/dbus-1/system.conf ...
Instalowanie nowej wersji pliku konfiguracyjnego /etc/init.d/dbus ...
chown: błędna grupa: `root:messagebus'
dpkg: błąd przetwarzania dbus (--install):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Przetwarzanie wyzwalaczy dla man-db...
Wystąpiły błędy podczas przetwarzania:
 dbus
O co chodzi z tym:

Kod: Zaznacz cały

chown: błędna grupa: `root:messagebus'

: 22 lutego 2011, 14:18
autor: fnmirk
Zacznij od początku przedstawiając informacje:

Kod: Zaznacz cały

cat /etc/apt/sources.list
uname -r

: 22 lutego 2011, 14:44
autor: jacexx
/etc/apt/source.list

Kod: Zaznacz cały

deb [url]http://ftp.pl.debian.org/debian/[/url] lenny main
deb-src [url]http://ftp.pl.debian.org/debian/[/url] lenny main

deb [url]http://security.debian.org/[/url] lenny/updates main
deb-src [url]http://security.debian.org/[/url] lenny/updates main

deb [url]http://volatile.debian.org/debian-volatile[/url] lenny/volatile main
deb-src [url]http://volatile.debian.org/debian-volatile[/url] lenny/volatile main

#~~~~~~Squeeze~~~~~~#
deb [url]http://ftp.pl.debian.org/debian/[/url] squeeze main non-free contrib
deb-src [url]http://ftp.pl.debian.org/debian/[/url] squeeze main non-free contrib
deb [url]http://security.debian.org/[/url] squeeze/updates main contrib non-free
deb-src [url]http://security.debian.org/[/url] squeeze/updates main contrib non-free

#Webmin
deb [url]http://download.webmin.com/download/repository[/url] sarge contrib
Dodam, iż na innej maszynie z takim samym plikiem /etc/apt/source.list instalacja gnome-core przeszła bez problemów.

Kod: Zaznacz cały

uname -r
2.6.26-2-amd64

: 22 lutego 2011, 14:52
autor: mariaczi
Zdecyduj czy chcesz korzystać z lenny czy ze squeeze. Obstawiam, że nie masz skonfigurowanego mieszania dystrybucji.
Pokaż też wynik polecenia

Kod: Zaznacz cały

cat /etc/debian_version

: 22 lutego 2011, 18:09
autor: jacexx
Lenny 5.0.8

A zawartość pliku /etc/apt/sources.list ustawiłem już tylko na Lenny. Wykonałem:

Kod: Zaznacz cały

apt-get update
Sytuacja jest w dalszym ciągu ta sama przy próbie instalacji dbus.

: 22 lutego 2011, 19:31
autor: mariaczi
Najświeższa wersja tego pakietu dla Lennego jest oznaczona 1.2.1-5+lenny2.
Odinstaluj ten pakiet, który zainstalowałeś ręcznie a następnie

Kod: Zaznacz cały

aptitude update
aptitude install dbus

: 22 lutego 2011, 19:45
autor: fnmirk
Użycie w tym momencie aptitude skomplikuje jeszcze bardziej całą sytuacje.