Package: apticron Version: 1.1.27 Severity: serious Justification: Policy 10.7.3: local changes must be preserved during a package upgrade
The postinst script generates errors when it greps through my modified /etc/cron.d/apticron file. All I did was to comment out the cron entry like below, as I prefer to run a more complicated script from /etc/cron.daily/apticron: # cron entry for apticron #57 22 * * * root test -x /usr/sbin/apticron && /usr/sbin/apticron --cron I don't think this is unreasonable behavior, as the postinst script should be able to handle such changes to a config file. I added "set -x" to the postinst to get this debug output to diagnose the problem: $ sudo dpkg --configure -a Setting up apticron (1.1.27) ... + case "$1" in + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/apticron.postinst configure 1.1.25 + case "$1" in + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ '[' '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + db_get apticron/notification + _db_cmd 'GET apticron/notification' + IFS=' ' + printf '%s\n' 'GET apticron/notification' + IFS=' ' + read -r _db_internal_line + RET=root + case ${_db_internal_line%%[ ]*} in + return 0 + EMAIL=root + '[' '!' -d /etc/apticron/ ']' ++ mktemp -t apticron.conf.XXXXXXXXXX + tmpfile=/tmp/apticron.conf.DzuXiomPWj + cat + ucf --debconf-ok --three-way /tmp/apticron.conf.DzuXiomPWj /etc/apticron/apticron.conf + rm -f /tmp/apticron.conf.DzuXiomPWj + '[' -f /etc/cron.d/apticron ']' ++ grep -v '^[[:space:]]*\(\#\|$\)' /etc/cron.d/apticron ++ read min hour null + time= dpkg: error processing apticron (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: apticron In this case, the grep statement is returning nothing, which I think causes the read to generate the error. You probably need to do some error checking in the postinst, such as to grep -q first to make sure there is some ouput from it. Thanks, Cameron -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apticron depends on: ii apt 0.7.20.1 Advanced front-end for dpkg ii bsd-mailx 8.1.2-0.20071201cvs-3 A simple mail user agent ii debconf [debconf-2 1.5.24 Debian configuration management sy ii ucf 3.0016 Update Configuration File: preserv Versions of packages apticron recommends: ii apt-listchanges 2.83 package change history notificatio ii iproute 20080725-2 networking and traffic control too apticron suggests no packages. -- debconf information: apticron/notification: root -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org