The effects of anacron cannot be disabled

Bug #1901634 reported by Gordon Lack
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
anacron (Ubuntu)
New
Undecided
Unassigned
Focal
Confirmed
Undecided
Unassigned
Jammy
New
Undecided
Unassigned

Bug Description

If anacron is installed its effects *cannot* be disabled.

You can run:
    systemctl disable anacron anacron.timer

but that will not help. That stops anacron running, but it does *not* prevent the run-parts entries in /etc/crontab from running, as they only check for the presence of /usr/sbin/anacron, *not* whether anacron is actually enabled.

The test should really be something like:
    systemctl -q is-enabled anacron

(although that still prints an error message if anacron isn't installed - despite the -q. Errors, even intended ones, seem to be unavoidable).

The result is that if you have a desktop system that is permanently on, you need to remove anacron - but the next dist-update will put it back in place.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: anacron 2.3-29
ProcVersionSignature: Ubuntu 5.8.0-25.26-generic 5.8.14
Uname: Linux 5.8.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Tue Oct 27 00:21:48 2020
InstallationDate: Installed on 2020-05-03 (176 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: anacron
UpgradeStatus: Upgraded to groovy on 2020-10-26 (1 days ago)

Revision history for this message
Gordon Lack (gordon-lack) wrote :
Ryan Stewart (stew3254)
Changed in anacron (Ubuntu):
status: New → Confirmed
Ryan Stewart (stew3254)
Changed in anacron (Ubuntu Focal):
status: New → Confirmed
Ryan Stewart (stew3254)
Changed in anacron (Ubuntu):
status: Confirmed → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.