Your message dated Mon, 09 Jan 2023 21:24:40 +0000
with message-id <e1pezdi-00eg4d...@fasolo.debian.org>
and subject line Bug#1027476: fixed in cron 3.0pl1-155
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 ow...@bugs.debian.org
immediately.)


-- 
1027476: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027476
Debian Bug Tracking System
Contact ow...@bugs.debian.org 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-155
Done: Georges Khaznadar <georg...@debian.org>

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 1027...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Georges Khaznadar <georg...@debian.org> (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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 09 Jan 2023 21:32:55 +0100
Source: cron
Architecture: source
Version: 3.0pl1-155
Distribution: unstable
Urgency: medium
Maintainer: Javier Fernández-Sanguino Peña <j...@debian.org>
Changed-By: Georges Khaznadar <georg...@debian.org>
Closes: 1027476
Changes:
 cron (3.0pl1-155) unstable; urgency=medium
 .
   * added a dependency on dpkg. Closes: #1027476
Checksums-Sha1:
 a3cdf84afecd9ef79629ac6a061169910e181418 2129 cron_3.0pl1-155.dsc
 873e631bb8163a8c89d234e4a8e858e3de967d83 113236 cron_3.0pl1-155.debian.tar.xz
 33580dc1483e8bb192dd21da8edb427f94c70c4f 6355 cron_3.0pl1-155_source.buildinfo
Checksums-Sha256:
 e84471988bf74b82c2fd42b3d4f4c04d1760bd741ae7671b2b6547c809db1ee5 2129 
cron_3.0pl1-155.dsc
 f01b8e4c26e69d1b0918fd49028bcb0a7d5f2e4fb4f7f5c110226baa2839d80b 113236 
cron_3.0pl1-155.debian.tar.xz
 b0d83414fbaf4ac4020814af4b7c378151917466750baa47aa012af50eb97a3f 6355 
cron_3.0pl1-155_source.buildinfo
Files:
 23443366329d860e2ab2f7d15623329f 2129 admin important cron_3.0pl1-155.dsc
 bfee45a4d023d5aea5bfa1dad04fc5ac 113236 admin important 
cron_3.0pl1-155.debian.tar.xz
 b110f7cb489c2fc179dc5c97b19f0663 6355 admin important 
cron_3.0pl1-155_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmO8enYUHGdlb3JnZXNr
QGRlYmlhbi5vcmcACgkQHCgWkHE2rjl3ghAAjskz1Ob7ZhPqgbEcwusQrH/Pk+lt
m7dYUHE/TN7DwHxW9XwAven6lL0DuHiUZS0fH9FFmg1CqiiJi9k73mk0mNESpUEj
jaivhzlM+vTAU9LnHzCs9jlX7Te5VqbmSJ5Fmewc9pm5/opGSqxw+BnvxJJk1+RN
rAeULx5izvMDmBp8Wp/+sD5VR7T3RHRGCXSEcZaUahgIkWqJlnPhFE/aJcQwJBBP
zWZF3fFuu3QT3lPEPdaumNs+rfAG9F4R4mzWZuga5aP1j23101DZ8Vfare/F9r4K
U1KPB1f9AVbd0859o1XCkTwsCBnN923SVbDogoA0Nj/uAtxW+4ZduaDxcK+Axxes
E6pjUHWyygcziAiGhd4RG44kVmI8PTKoHoqgC3R7V++gR3QmF++/zqNVhyCKeD7A
9BzkErfq0lOtirKxMrhDkVU/D+IyGVdD0qdb5HJ1SRH+XclfjYUmKJrAzljo0WgC
jxu3HW6H8oBtjTH1Y8TZbzt/lYuI12ljWty38HNxcpA3ArbjindnoJhSnr69FldD
1hgkoRAzH3UHU+Xc0Gdi2hblpe39xMo2faneleAfZccQfRrg5fOmD9Zyg2gq/PUc
eet2RGQ0/2n1gd8utndFyaQ+3D8x7nIkUDaMelVrP8YORVs8xU5Bl98doZiqC+GH
rc4kOyv+ADpmoJg=
=9b0d
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to