Package: libapache2-mod-php7.0
Version: 7.0.33-0+deb9u7

Hey guys,

I wanted to report an issue that we faced some time ago: https://github.com/MichaIng/DietPi/issues/2797

The postrm script calls "php_invoke dismod 7.0 apache2 $mod" to disable the modules, but this fails if either "/usr/lib/apache2/modules/libphp7.0.so" or "/etc/apache2/mods-avaialble/php7.0.load" are missing already for some reason.

IMO any prerm/postrm script must not depend on any of the packages files, that is about to be removed. With PHP7.3 packages this have been solved, from what I can see. Either the scripts from PHP7.3 can be adopted or otherwise a simple " || :" would allow the commands to fail. Uninstall could be unclean, but IMO better then running into such very very annoying state, that, because its about dpkg state, prevents apt/dpkg from installing/upgrading anything else without final failure (see above linked issue).

Best regards,
MichaIng

Reply via email to