Your message dated Tue, 3 Mar 2020 19:53:35 +0100
with message-id <[email protected]>
and subject line Unable to replicate on fresh Debian Stretch
has caused the Debian Bug report #953042,
regarding Package removal can fail if some contained files are no present
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
953042: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953042
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message --- Okay, I tried to replicate the bug, but was unable on fresh Stretch. The package removal/purge succeeds regardless of module files being present or not, even that "a2enmod php7.0" throws the exact error from the linked issue.

So before wasting anyone's time any more on oldstable, I close the bug report. Sorry for the spam, I should have tested it first.

@Ondrej
I'll think about addressing Debian policy with this suggestion. It simply makes sense that package removals cannot fail if any of its files are missing already.

Best regards,
MichaIng

--- End Message ---

Reply via email to