Package: python
Version: 2.4.4-5
Severity: important

Hello,

Installing python 2.4.4-5 (upgrade) fails on postinst :
(sorry localized dpkg messages)

$ dpkg -i /var/cache/apt/archives/python_2.4.4-5_all.deb 
(Lecture de la base de données... 214787 fichiers et répertoires déjà 
installés.)
Préparation du remplacement de python 2.4.4-5 (en utilisant 
.../python_2.4.4-5_all.deb) ...
Dépaquetage de la mise à jour de python ...
Paramétrage de python (2.4.4-5) ...
dpkg : erreur de traitement de python (--install) :
 le sous-processus post-installation script a retourné une erreur de sortie 
d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 python
 
Looking at postinst, the issue is on /var/lib/python :

$ sh -x -e ./postinst configure
+ [ -d /etc/python ]
+ [ -f /etc/python/debian_config ]
+ [ -n  ]
+ [ -f /var/lib/python/python2.5_already_installed ]
+ rm -f /var/lib/python/python2.5_already_installed
+ rmdir --ignore-fail-on-non-empty /var/lib/python

My system didn't have /var/lib/python, so rmdir returns an exit status that 
makes the postinst script die. Creating /var/lib/python fixed the install.

Simple workaround for the script : ignore rmdir result with eg "||
/bin/true", or test the presence of the directory before calling rmdir.

Regards,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'oldstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.4 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages python depends on:
ii  python-minimal                2.4.4-5    A minimal subset of the Python lan
ii  python2.4                     2.4.4-4    An interactive high-level object-o

python recommends no packages.

-- no debconf information

Reply via email to