Debian: pense-bête sur les postinstall

Published: 07-01-2020

Updated: 07-01-2020

By: Maxime de Roucy

tags: deb debian

Si vous tombez sur une erreur du type :

root@laptop # apt install /tmp/percona-release_latest.buster_all.deb
…
dpkg: error processing package percona-release (--configure):
 installed percona-release package post-installation script subprocess returned error exit status 255
Errors were encountered while processing:
 percona-release
E: Sub-process /usr/bin/dpkg returned an error code (1)

Voici un moyen de tester le script de postinstall, avec un peu plus d’info :

root@laptop # bash -x /var/lib/dpkg/info/percona-release.postinst configure