De lenny à squeeze

Ça fait deux fois que j’essaye de migrer de stable à testing.
À chaque fois la migration s’interrompt à la configuration d’udev,
précédée d’un problème de locales :

... Processing triggers for man-db ... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). /usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct manconv: can't set the locale; make sure $LC_* and $LANG are correct ... manconv: can't set the locale; make sure $LC_* and $LANG are correct Errors were encountered while processing: /var/cache/apt/archives/udev_160-1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) #
Ci-dessous ce que me renvoie la commande locale :# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier ou dossier de ce type LANG=fr_FR.UTF-8 LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL=
Faute de mieux, je tente :[code]# 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:
libmpfr1ldbl cpp-4.3
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
udev
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 661 not upgraded.
148 not fully installed or removed.
Need to get 0B/466kB of archives.
After this operation, 651kB of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier ou dossier de ce type
Preconfiguring packages …
Setting up libattr1 (1:2.4.44-2) …
(Reading database … 91521 files and directories currently installed.)
Preparing to replace udev 0.125-7+lenny3 (using …/archives/udev_160-1_i386.deb) …
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier ou dossier de ce type

Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED
feature is disabled in the running kernel.

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!

dpkg: error processing /var/cache/apt/archives/udev_160-1_i386.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
Errors were encountered while processing:
/var/cache/apt/archives/udev_160-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)[/code]
Me voilà bien avancé.
J’essaye de revoir les locales :# dpkg-reconfigure locales perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier ou dossier de ce type /usr/sbin/dpkg-reconfigure: locales is broken or not fully installed
Que faire ? Installer un nouveau noyau, comme indiqué plus haut en ces mots :
Please upgrade your kernel before or while upgrading udev ?

essaye aptitude safe-upgrade

sinon essaye en mode interactif: aptitude puis menu Solution…

[code]# aptitude safe-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reading extended state information
Initializing package states… Done
Writing extended state information… Done
Reading task descriptions… Done
open: 1743; closed: 4988; defer: 5697; conflict:1
.
The following packages have unmet dependencies:
xserver-xorg-core: Depends: udev (>= 149) but 0.125-7+lenny3 is installed and it is kept back.

[/code]Hem.
Et puis ?

[quote=“Pathe”]

[code][…]
Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED
feature is disabled in the running kernel.

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!
[…][/code]
Que faire ? Installer un nouveau noyau, comme indiqué plus haut en ces mots :
Please upgrade your kernel before or while upgrading udev ?[/quote]
Oui, suffit de d’abord mettre à jour ton noyau Linux, redémarrer ta machine, et retenter la mise à jour.

aptitude upgrade linux-image-2.6-*(remplace l’* par l’architecture utilisée)

Merci pour ta réponse.[quote=“Keldath”]Oui, suffit de d’abord mettre à jour ton noyau Linux, redémarrer ta machine, et retenter la mise à jour.

aptitude upgrade linux-image-2.6-*(remplace l’* par l’architecture utilisée)[/quote]Mais ? J’ai déjà un noyau 2.6 !# uname -a Linux libellule 2.6.26-2-686 #1 SMP Mon Aug 30 07:01:57 UTC 2010 i686 GNU/LinuxDonc quoi ? J’installe le noyau 2.6.32 ?

Je pense que oui. :023

C’est parti !k# apt-get install linux-image-2.6.32-5-686 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: linux-image-2.6.32-5-686: Depends: linux-base (>= 2.6.32-21) but it is not going to be installed Recommends: firmware-linux-free (>= 2.6.32) but it is not going to be installed xserver-xorg-core: Depends: udev (>= 149) but 0.125-7+lenny3 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). #Me voilà bien. J’essaye ce qui m’est conseillé :[code]# 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:
libmpfr1ldbl cpp-4.3
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
udev
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 661 not upgraded.
147 not fully installed or removed.
Need to get 0B/466kB of archives.
After this operation, 651kB of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier ou dossier de ce type
Preconfiguring packages …
(Reading database … 91521 files and directories currently installed.)
Preparing to replace udev 0.125-7+lenny3 (using …/archives/udev_160-1_i386.deb) …
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier ou dossier de ce type

Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED
feature is disabled in the running kernel.

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!

dpkg: error processing /var/cache/apt/archives/udev_160-1_i386.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
Errors were encountered while processing:
/var/cache/apt/archives/udev_160-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
#[/code]J’ai le sentiment de tourner en rond.

Synaptic m’annonçait un paquet cassé.
Il s’agissait de xserver-xorg-core.
J’ai supprimé ce paquet, puis fait :# aptitude safe-upgrade && apt-get install xserver-xorgVerdict sous peu.

Il y avait déjà eu des problèmes de ce style là :
http://forum.debian-fr.org/viewtopic.php?f=3&t=25181&start=0

[quote=“cauchy”]Il y avait déjà eu des problèmes de ce style là :
http://forum.debian-fr.org/viewtopic.php?f=3&t=25181&start=0[/quote]Merci. De fait ça y ressemble.
J’ai donc supprimé xserver-xorg, fait aptitude safe-upgrade, redémarré, installé X.
Ça marche.
Actuellement ça corrige des problèmes de dépendances, je ne comprends pas pourquoi il reste des logiciels de lenny. Mais bon :
je marque le sujet comme [Résolu], tout en ne comprenant pas vraiment ce qui s’est passé, et en me réservant la possibilité d’ôter ce tag si ça devrait foirer à nouveau.

Sur certaines machines j’avais un temps de résolution de dépendances trop importantes. J’ai du carrément réinstaller à partir du netCD. En même temps j’ai mon dossier /home qui est sur une partition j’ai pu le garder et le reste a été formaté. Dans bien des cas c’est la meilleure solution pour une station de travail ou de développement on repart à zéro après quelques années de bon et loyaux services.

Certaines bécanes de mon parc si je me trompe pas sont passées successivement de Sarge, Etch, Lenny puis squeeze.