Ich habe zwei Root-Server und mache dort regelmäßig apt-get update und apt-get upgrade um die Sicherheitspatches einzuspielen. Nun steht in /etc/sources.list nicht lenny sondern stable. Was ich nicht mitbekommen habe - ich aber jetzt weiß - ist, dass seit Samstag squeeze stable ist.
Nachdem dieser erste Upgrade gescheitert ist (leider nicht gelogged) und ich vermutlich fatale dpkg Befehle abgesetzt habe, komme ich auf kein stabiles System mehr zurück. Da ich die Server sehr ungern neu aufsetzen würde die Frage, ob man das wieder hinbekommt, und wenn ja wie. Kann so leidlich mit apt-get und dpkg umgehen.
Für alle die sich angespornt fühlen, die Details unten stehend, ein fetter Dank ist Euch gewiss:
Danke,
Willi
---------------------------------------------
Erstes System:
Code: Alles auswählen
# uname -a
Linux www.domain.tld 2.6.15.4 #1 Tue Feb 14 14:16:29 CET 2006 i686 GNU/Linux
Code: Alles auswählen
deb http://hetzner:download@download.hetzner.de/debian/mirror/ lenny main contrib non-free
deb-src ftp://ftp.uni-erlangen.de/pub/Linux/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib
Code: Alles auswählen
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.11) but 2.7-18lenny7 is installed
libc-bin: Breaks: libc6 (< 2.10) but 2.7-18lenny7 is installed
libc-dev-bin: Depends: libc6 (> 2.11) but 2.7-18lenny7 is installed
libc6-dev: Depends: libc6 (= 2.11.2-10) but 2.7-18lenny7 is installed
locales: Depends: glibc-2.11-1 but it is not installable
E: Unmet dependencies. Try using -f.
Code: Alles auswählen
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
alien binutils debhelper dpkg-dev g++ g++-3.3 g++-4.3 gcc gcc-3.3 gcc-4.1 gcc-4.3 libc-bin libc-dev-bin libc6-dev libncurses5-dev libstdc++5-3.3-dev libstdc++6-4.3-dev locales
0 upgraded, 0 newly installed, 18 to remove and 3 not upgraded.
4 not fully installed or removed.
After this operation, 92.4MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 39453 files and directories currently installed.)
Removing alien ...
Removing debhelper ...
Removing g++ ...
Removing gcc ...
Removing gcc-4.1 ...
Removing dpkg-dev ...
Removing libncurses5-dev ...
Removing libc-dev-bin ...
Removing locales ...
Removing libc-bin ...
Removing libstdc++6-4.3-dev ...
Removing g++-3.3 ...
Removing libstdc++5-3.3-dev ...
Removing gcc-3.3 ...
Removing g++-4.3 ...
Removing gcc-4.3 ...
Removing binutils ...
/var/lib/dpkg/info/binutils.postrm: line 6: ldconfig: command not found
dpkg: error processing binutils (--remove):
subprocess post-removal script returned error exit status 127
Removing libc6-dev ...
Processing triggers for man-db ...
Errors were encountered while processing:
binutils
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Alles auswählen
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: `ldconfig' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
Code: Alles auswählen
# uname -a
Linux www2.domain.tld 2.6.8-3-k7-smp #1 SMP Tue Dec 5 22:36:44 UTC 2006 i686 GNU/Linux
Code: Alles auswählen
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.11) but 2.7-18lenny7 is installed
libc-bin: Breaks: libc6 (< 2.10) but 2.7-18lenny7 is installed
perl: Depends: perl-modules (>= 5.10.0-19lenny3) but it is not installed
pure-ftpd-common: Depends: perl-modules but it is not installed
Recommends: pure-ftpd
E: Unmet dependencies. Try using -f.
Code: Alles auswählen
www:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libgomp1 linux-libc-dev cpp libgmp3c2 libtimedate-perl libmpfr1ldbl cpp-4.3 patch make
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
perl-modules
The following packages will be REMOVED:
binutils libc-bin
The following NEW packages will be installed:
perl-modules
0 upgraded, 1 newly installed, 2 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 0B/3191kB of archives.
After this operation, 2105kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 26943 files and directories currently installed.)
Removing binutils ...
FATAL: kernel too old
/var/lib/dpkg/info/binutils.postrm: line 7: 3180 Segmentation fault ldconfig
dpkg: error processing binutils (--remove):
subprocess post-removal script returned error exit status 139
Errors were encountered while processing:
binutils
E: Sub-process /usr/bin/dpkg returned an error code (1)