Package: cups-pk-helper
Version: 0.2.6-2
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to purge due
to a command not found. According to policy 7.2 you cannot rely on the
depends being available during purge, only the essential packages are
available for sure.

The fix should be easy: your package is using adduser or deluser from
the adduser package, which is only priority important. Using useradd or
userdel from the passwd package (priority required) should fix this
problem.

There is ongoing discussion how to handle system users on package
removal, see https://bugs.debian.org/621833
Consensus seems to be not to remove system users (to avoid reusing UIDs
which could grant access to the wrong files) but to "lock" them (where
"locking"/"unlocking" is not yet precisely defined). Until that has
been decided it should be sufficient to have the postrm script ignore
any errors from deluser:
  deluser ... || true

From the log (scroll to the bottom...)
see https://piuparts.debian.org/sid/fail/cups-pk-helper_0.2.6-2.log

--- The relevant bit ---
  Purging configuration files for cups-pk-helper (0.2.6-2) ...
  /var/lib/dpkg/info/cups-pk-helper.postrm: 7: deluser: not found
  dpkg: error processing package cups-pk-helper (--purge):
   installed cups-pk-helper package post-removal script subprocess returned
error exit status 127
  Errors were encountered while processing:
   cups-pk-helper
---

With kind regards,
Roland Clobus

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to