Bonjour tout le monde,
j’ai décidé de recycler une vieille machine sous debian qui me servait de passerelle il y a quelques années pour en faire un serveur VPN.
Seulement voilà, après toute ces années il ne suffit visiblement pas d’un apt-get update, apt-get upgrade et apt-get dist-upgrade car…
J’ai eu un problème de dépendance qui mettait en jeu le paquet “sysvinit” du coup je l’ai desinstallé pour le réinstaller, seulement voilà, maintenant ce sont d’autres dépendances qui posent problème :
[quote]bibine:~# apt-get install sysvinit
Reading Package Lists… Done
Building Dependency Tree… Done
You might want to run `apt-get -f install’ to correct these:
Sorry, but the following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.7-1) but 2.2.5-11.5 is to be installed
libc-dev-bin: Depends: libc6 (> 2.10) but 2.2.5-11.5 is to be installed
libc6-dev: Depends: libc6 (= 2.10.2-2) but 2.2.5-11.5 is to be installed
sysvinit: Depends: libc6 (>= 2.3) but 2.2.5-11.5 is to be installed
Depends: libselinux1 (>= 1.32) but it is not going to be installed
Depends: libsepol1 (>= 1.14) but it is not going to be installed
PreDepends: initscripts but it is not going to be installed
PreDepends: sysv-rc but it is not going to be installed or
file-rc but it is not going to be installed
PreDepends: sysvinit-utils (>= 2.86.ds1-66) but it is not going to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
[/quote]
Petit problème, il me semble que sysvinit est indispensable au bon démarrage de la machine, or je n’aurai aucun accès physique à celle-ci avant 6 mois, je ne peux pas me risquer à un reboot tant que je n’ai pas la certitude qu’au moins sshd démarrera correctement, il faut absolument que je puisse régler ces problèmes.
Voilà ce que donne un apt-get -f install :
[quote]bibine:~# apt-get -f install
Reading Package Lists… Done
Building Dependency Tree… Done
Correcting dependencies… Done
The following extra packages will be installed:
libc6
1 packages upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
5 packages not fully installed or removed.
Need to get 0B/3837kB of archives. After unpacking 3478kB will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages …
tar: ./md5sums: time stamp 2009-11-24 11:50:11 is 627755171 s in the future
tar: ./preinst: time stamp 2009-11-24 11:50:07 is 627755167 s in the future
tar: ./shlibs: time stamp 2009-11-24 11:50:06 is 627755166 s in the future
tar: ./symbols: time stamp 2009-11-24 11:50:06 is 627755166 s in the future
tar: ./control: time stamp 2009-11-24 11:50:11 is 627755171 s in the future
tar: ./postinst: time stamp 2009-11-24 11:50:07 is 627755167 s in the future
tar: ./postrm: time stamp 2009-11-24 11:50:07 is 627755167 s in the future
tar: ./templates: time stamp 2009-11-24 11:49:56 is 627755156 s in the future
tar: ./conffiles: time stamp 2009-11-24 11:50:07 is 627755167 s in the future
(Reading database … 15450 files and directories currently installed.)
Preparing to replace libc6 2.2.5-11.5 (using …/libc6_2.10.2-2_i386.deb) …
Checking for services that may need to be restarted…
Checking init scripts…
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
readlink: invalid option – e
usage: readlink [-n] [-f] symlink
WARNING: this version of the GNU libc requires kernel version
2.6.18 or later. Please upgrade your kernel before installing
glibc.
The installation of a 2.6 kernel could ask you to install a new libc
first, this is NOT a bug, and should NOT be reported. In that case,
please add lenny sources to your /etc/apt/sources.list and run:
apt-get install -t lenny linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.10.2-2_i386.deb (–unpack ):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.10.2-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[/quote]
La il me faudrait mettre à jour le noyau et redemarrer… mais je crains de ne pas pouvoir redemarrer sans sysvinit !
Voici mon sources.list :
[quote]bibine:~# cat /etc/apt/sources.list
deb ftp.fr.debian.org/debian/ stable main non-free contrib
deb-src ftp.fr.debian.org/debian/ stable main non-free contrib
deb security.debian.org/ stable/updates main contrib non-free
deb ftp2.fr.debian.org/debian/ testing main contrib non-free
deb-src ftp.fr.debian.org/debian/ testing main contrib non-free
deb ftp.fr.debian.org/debian/ etch main contrib non-free
deb-src ftp.fr.debian.org/debian/ etch main contrib non-free
[/quote]
Et un autre exemple du foirage d’apt quand j’essaie d’installer un paquet quelconque:
[quote]bibine:~# apt-get install emacs
Reading Package Lists… Done
Building Dependency Tree… Done
You might want to run `apt-get -f install’ to correct these:
Sorry, but the following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.7-1) but 2.2.5-11.5 is to be installed
emacs: Depends: emacs23 or
emacs23-lucid but it is not going to be installed or
emacs23-nox but it is not going to be installed
libc-dev-bin: Depends: libc6 (> 2.10) but 2.2.5-11.5 is to be installed
libc6-dev: Depends: libc6 (= 2.10.2-2) but 2.2.5-11.5 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
[/quote]
Pour information, c’est une installation qui tourne sur le noyau 2.4.18-bf2.4… Je vous ai dit que c’était pas tout jeune !
Si quelqu’un a des pistes je suis preneur !