apticron uninstallable without cron
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.
cp: cannot create regular file `/etc/cron.
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.
cp: cannot create regular file `/etc/cron.
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
Related branches
Changed in apticron (Ubuntu): | |
status: | New → Confirmed |
Changed in apticron (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Evan Broder (broder) |
importance: | Undecided → Low |
tags: | added: patch |
Changed in apticron (Debian): | |
status: | Unknown → Fix Released |
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.