apticron uninstallable without cron

Bug #529381 reported by Alex Dehnert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apticron (Debian)
Fix Released
Unknown
apticron (Ubuntu)
Fix Released
Low
Evan Broder

Bug Description

Binary package hint: apticron

apticron appears to require cron to be installed so that the /etc/cron.d/ directory exists. When cron isn't installed (as, for example, on a VM built by python-vm-builder), apticron will fail to install.

Presumably, apticron should declare a dependency on cron (or recommend cron and install successfully without it or something).

root@novgorod:~# lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
root@novgorod:~# apt-cache policy apticron
apticron:
  Installed: 1.1.35
  Candidate: 1.1.35

Running "aptitude install apticron" should install apticron.

Instead, it fails:
root@novgorod:~# aptitude install apticron
[...]
Setting up apticron (1.1.35) ...

Creating config file /etc/cron.d/apticron with new version
cp: cannot create regular file `/etc/cron.d/apticron': No such file or directory
dpkg: error processing apticron (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apticron
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up apticron (1.1.35) ...

Creating config file /etc/cron.d/apticron with new version
cp: cannot create regular file `/etc/cron.d/apticron': No such file or directory
dpkg: error processing apticron (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 apticron
Reading package lists... Done

Tags: patch

Related branches

Angel Abad (angelabad)
Changed in apticron (Ubuntu):
status: New → Confirmed
Evan Broder (broder)
Changed in apticron (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Evan Broder (broder)
importance: Undecided → Low
Revision history for this message
Evan Broder (broder) wrote :

Attached is a patch that should fix this bug. I've uploaded a test build to my PPA (https://launchpad.net/~broder/+archive/ubuntu-tests). I've also submitted the bug upstream to Debian.

I'm planning to upload the fix to Lucid as soon as I've verified that the PPA test build completed successfully.

tags: added: patch
Revision history for this message
Alex Dehnert (adehnert) wrote :

I've verified that stock apticron doesn't install on a new Lucid VM, but that the apticron from your PPA does. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apticron - 1.1.38ubuntu1

---------------
apticron (1.1.38ubuntu1) lucid; urgency=low

  * Add missing cron dependency. (LP: #529381)
 -- Evan Broder <email address hidden> Wed, 03 Mar 2010 22:10:05 -0500

Changed in apticron (Ubuntu):
status: In Progress → Fix Released
Changed in apticron (Debian):
status: Unknown → Fix Released
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.