Your message dated Wed, 11 Jan 2023 15:34:43 +0000 with message-id <[email protected]> and subject line Bug#1027476: fixed in cron 3.0pl1-156 has caused the Debian Bug report #1027476, regarding cron: postrm script fails because expected dpkg-statoverride is not 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.) -- 1027476: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027476 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: cron Version: 3.0pl1-154 Severity: normal Dear Maintainer, The postrm script in the current version of the cron package assumes the presence of a dpkg-statoverride for /usr/bin/crontab, but no such statoverride is present on my systems. As a result when I try to 'purge' the cron package the process fails. Recipe to reproduce the issue: 1) cd /root 2) mkdir foo 3) debootstrap --variant=minbase --include=logrotate,systemd-cron bookworm 4) chroot /root/foo /bin/bash 5) apt remove --purge cron This results in the following output: Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: cron* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device) (Reading database ... 11054 files and directories currently installed.) Purging configuration files for cron (3.0pl1-154) ... dpkg-statoverride: warning: no override present dpkg: error processing package cron (--purge): installed cron package post-removal script subprocess returned error exit status 2 Errors were encountered while processing: cron E: Sub-process /usr/bin/dpkg returned an error code (1) Editing /var/lib/dpkg/info/cron.postrm to remove the first section resolves the issue. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.0.0-6-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages cron depends on: ii cron-daemon-common 3.0pl1-154 ii init-system-helpers 1.65.2 ii libc6 2.36-7 ii libpam-runtime 1.5.2-5 ii libpam0g 1.5.2-5 ii libselinux1 3.4-1+b4 ii sensible-utils 0.0.17 Versions of packages cron recommends: ii msmtp-mta [mail-transport-agent] 1.8.22-1 Versions of packages cron suggests: pn checksecurity <none> ii logrotate 3.21.0-1 ii systemd-cron [anacron] 1.15.19-2+b1
--- End Message ---
--- Begin Message ---Source: cron Source-Version: 3.0pl1-156 Done: Georges Khaznadar <[email protected]> We believe that the bug you reported is fixed in the latest version of cron, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Georges Khaznadar <[email protected]> (supplier of updated cron package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 11 Jan 2023 16:12:26 +0100 Source: cron Architecture: source Version: 3.0pl1-156 Distribution: unstable Urgency: medium Maintainer: Javier Fernández-Sanguino Peña <[email protected]> Changed-By: Georges Khaznadar <[email protected]> Closes: 1027476 Changes: cron (3.0pl1-156) unstable; urgency=medium . * reverted the previous change (dependency on dpkg) * in debian/crontab.postrm, lanch dpkg-statoverride --remove only when dpkg-statoverride --list return some override; Closes: #1027476 Checksums-Sha1: 73b38effd5a8d6e06b341c829a895e6aace56541 2129 cron_3.0pl1-156.dsc 37c19af6c4c9a13d61dba2b726edb20f44935bd2 113284 cron_3.0pl1-156.debian.tar.xz 6a3f29ae3087fdd32576f6e5bae507debd3b1b38 6355 cron_3.0pl1-156_source.buildinfo Checksums-Sha256: 58a760e290a73ea1aa747a12af87865287faa66af31d0e2829a03de51a10858a 2129 cron_3.0pl1-156.dsc a7e7c4fb8f36d45802fe1039c1fa7922a5e0869404d85bcde7351b1c8fad32e8 113284 cron_3.0pl1-156.debian.tar.xz 9cc796e5ed848671920b7443b0665fce39262e69831927c2051acf761af10747 6355 cron_3.0pl1-156_source.buildinfo Files: 5639143ac267e75ee0c34e15235088d9 2129 admin important cron_3.0pl1-156.dsc 1c6d901890285a6acda1cbbfdab4d64e 113284 admin important cron_3.0pl1-156.debian.tar.xz 4c2bae44c31177dd82d6c9e70e47f3d3 6355 admin important cron_3.0pl1-156_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJIBAEBCAAyFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmO+078UHGdlb3JnZXNr QGRlYmlhbi5vcmcACgkQHCgWkHE2rjksWA//XRRIn2mH28E1/MOA636IWdJaidKo slCegA9b7XYT2nj7Ly/GzfTuhvWEj9saaY/avSgZRK1R4bAfnVNFvN+h4jqqJA/o j80PObPXT+Ef+ssIrfb4rMOQ8daOCkQpLJ4PcvbLbg9ixwwnydVk+ovwfanLLhiq hur59CEP8PtnKD35sItvR6fai/ulbUrH8BbY/VI6O/NrbTXxrm/coojG6ldJkO5v LRVylDogMuhZyjaGNIPmrqZcS2N5X9FGAYzhPfQSQUG50jzD3xFwfL9goyJYiICp 9wQYm0TiCj5sLkULsWXrYkXC8LpufnryRDYrMG+JCXtqSPpef3ulaa9xbyss4YNz awxM5G3ACHHVXjzq2ZObsY4O0f5cDW347XRKtugtSkcgFpveZNUjapoftOJHE7uQ h07MSpMwh8wckVoSrniQP9S/bbYcbCQJdjhb8Bn8AFxsW1Gl/Py4+2zb5vwB77ye tF2+zgZwPL6vI2/IUBc9pTGZ7hsLxu95OAe82z8/5QPu/BdKoBKZIpVnwKRYABBO EqkbpWeeI/x1tgC8zMmsa2d7D4qMLyMPJvVIbkxJDLPA/Ji0WBbP1St0oFJheUIf 6f4ijiSvBHsOKH95Q4wZ1b0EfrUDm/cmZnwygcdsiAjt7XuqwYZqjlVRsPZq4MyH snI/5i4V7OrbETk= =zZqT -----END PGP SIGNATURE-----
--- End Message ---

