Bug#556945: libc-bin: getent is used in postinst (in other packages) before it is working
Package: libc-bin
Version: 2.10.1-7
Severity: serious
Justification: Can break upgrade
Hi,
I just tried to upgrade an unstable system (that has not been upgraded for
several months). The upgrade fails due to postinst scripts trying to use
getent. It seems to me that the problem is that getent is upgraded but not yet
working because the new libc6 is not yet unpacked.
I reported this bug against libc-bin but I'm not sure it must be here.
I saw that libc-bin does not depends on libc6 (perhaps to avoid circular
dependencies). However, there is a problem that need to be fixed.
Here is the problematic part of my "apt-get dist-upgrade":
Préparation du remplacement de libpam0g 1.0.1-9 (en utilisant .../libpam0g_1.1.0-4_amd64.deb) ...
Dépaquetage de la mise à jour de libpam0g ...
Paramétrage de libpam0g (1.1.0-4) ...
Checking for services that may need to be restarted...Checking init scripts...
Restarting services possibly affected by the upgrade:
gdm: reloading...done.
cron: stopping...starting...done.
atd: stopping...starting...done.
Services restarted successfully.
(Lecture de la base de données... 201125 fichiers et répertoires déjà installés.)
Préparation du remplacement de libpam-modules 1.0.1-9 (en utilisant .../libpam-modules_1.1.0-4_amd64.deb) ...
Dépaquetage de la mise à jour de libpam-modules ...
Traitement des actions différées (« triggers ») pour « man-db »...
Paramétrage de libpam-modules (1.1.0-4) ...
Installation de la nouvelle version du fichier de configuration /etc/security/namespace.init ...
(Lecture de la base de données... 201130 fichiers et répertoires déjà installés.)
Préparation du remplacement de passwd 1:4.1.1-6 (en utilisant .../passwd_1%3a4.1.4.2-1_amd64.deb) ...
Dépaquetage de la mise à jour de passwd ...
Traitement des actions différées (« triggers ») pour « man-db »...
Paramétrage de passwd (1:4.1.4.2-1) ...
getent: /lib/libc.so.6: version `GLIBC_2.10' not found (required by getent)
groupadd: group 'shadow' already exists
Group ID 42 has been allocated for the shadow group. You have either
used 42 yourself or created a shadow group with a different ID.
Please correct this problem and reconfigure with dpkg --configure passwd''.
Note that both user and group IDs in the range 0-99 are globally
allocated by the Debian project and must be the same on every Debian
system.
(Lecture de la base de données... 201126 fichiers et répertoires déjà installés.)
Préparation du remplacement de libuuid1 1.41.3-1 (en utilisant .../libuuid1_2.16.1-4_amd64.deb) ...
Dépaquetage de la mise à jour de libuuid1 ...
Paramétrage de libuuid1 (2.16.1-4) ...
getent: /lib/libc.so.6: version `GLIBC_2.10' not found (required by getent)
getent: /lib/libc.so.6: version `GLIBC_2.10' not found (required by getent)
useradd: user 'libuuid' already exists
dpkg : erreur de traitement de libuuid1 (--configure) :
le sous-processus post-installation script a retourné une erreur de sortie d'état 9
Des erreurs ont été rencontrées pendant l'exécution :
libuuid1
E: Sub-process /usr/bin/dpkg returned an error code (1)
And here is the current state of libc-bin and libc6:
# LC_ALL=C dpkg -l libc-bin libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================================-====================================-========================================================================================
ii libc-bin 2.10.1-7 GNU C Library: Binaries
ii libc6 2.9-7 GNU C Library: Shared libraries
Regards,
Vincent
-- System Information:
Debian Release: squeeze/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
Reply to: