On 6/30/24 9:20 PM, Balbir Thomas wrote:
Package: anacron Version: 2.3-36 Severity: normalDear Maintainer, I was experiencing long delays on shutdown of my laptop because anacron was running a long running task with no time limit. I found anacron was only installed because it was a dependency of task-laptop. I removed task-laptop then I tried to remove anacron using "apt remove --purge anacron" . However this lead to a hang and the removal process never terminates, requiring killall.
Other than task-laptop, logrotate also depends on anacron, so I would not recommend removal. If you know which task is long running, you could disable the task in "/etc/cron.*", "/etc/anacrontab", or "/etc/crontab". I am not familiar with "apt remove --purge", so I have added the apt team mailing list to help with debugging this issue. Any logs or other information you could provide would also be be good to have.
-- System Information: Debian Release: 12.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-21-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages anacron depends on: ii libc6 2.36-9+deb12u7 ii lsb-base 11.6 ii sysvinit-utils [lsb-base] 3.06-4 Versions of packages anacron recommends: ii cron [cron-daemon] 3.0pl1-162 Versions of packages anacron suggests: ii msmtp-mta [mail-transport-agent] 1.8.23-1 ii powermgmt-base 1.37 ii rsyslog [system-log-daemon] 8.2302.0-1 -- no debconf information
-- Lance Lin GPG Fingerprint: 4A31 DB5A 1EE4 096C 8739 9880 9036 4929 4C33 F9B7
OpenPGP_0x903649294C33F9B7.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature