[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1035292: debian-edu-fai: fails to purge - command (deluser|adduser) in postrm not found



Package: debian-edu-fai
Version: 2022.04.14.1
Severity: serious
User: debian-qa@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 attached log (scroll to the bottom...):

0m20.1s DEBUG: Starting command: ['chroot', '/srv/piuparts.debian.org/tmp/tmpephm8a0q', 'dpkg', '--purge', 'debian-edu-fai']
0m20.1s DUMP: 
  (Reading database ... 8077 files and directories currently installed.)
  Purging configuration files for debian-edu-fai (2022.04.14.1) ...
  /var/lib/dpkg/info/debian-edu-fai.postrm: 21: deluser: not found
  dpkg: error processing package debian-edu-fai (--purge):
   installed debian-edu-fai package post-removal script subprocess returned error exit status 127
  Errors were encountered while processing:
   debian-edu-fai
0m20.1s ERROR: Command failed (status=1): ['chroot', '/srv/piuparts.debian.org/tmp/tmpephm8a0q', 'dpkg', '--purge', 'debian-edu-fai']


cheers,

Andreas

Attachment: debian-edu-fai_2022.04.14.1.log.gz
Description: application/gzip


Reply to: