Package: apt Version: 0.9.11.2 Severity: normal Tags: patch /etc/cron.daily/apt fails with the following error.
| root@zaphod:/etc/cron.daily# ./apt | verbose level 2 | system is on main power. | error encountered in cron job with "apt-get check". This is caused by an errounous "-f" option passed in to apt-get check. The attached patch removes the "-f" and should fix the issue. -- Package-specific info: -- (/etc/apt/preferences present, but not submitted) -- -- (no /etc/apt/sources.list present) -- -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (600, 'unstable'), (570, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10.5+ (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt depends on: ii debian-archive-keyring 2012.4 ii gnupg 1.4.14-1 ii libapt-pkg4.12 0.9.11.2 ii libc6 2.17-92+b1 ii libgcc1 1:4.8.1-9 ii libstdc++6 4.8.1-9 apt recommends no packages. Versions of packages apt suggests: ii apt-doc 0.9.11.2 ii aptitude 0.6.8.2-1.2 ii dpkg-dev 1.17.1 ii python-apt 0.8.9.1+b1 ii xz-utils 5.1.1alpha+20120614-2 -- Configuration Files: /etc/cron.daily/apt changed [not included] -- no debconf information
diff -r 5b6eee457e46 cron.daily/apt --- a/cron.daily/apt Sat Aug 31 22:05:01 2013 -0400 +++ b/cron.daily/apt Sat Aug 31 22:10:09 2013 -0400 @@ -375,7 +375,7 @@ check_power || exit 0 # check if we can lock the cache and if the cache is clean -if which apt-get >/dev/null && ! eval apt-get check -f $XAPTOPT $XSTDERR ; then +if which apt-get >/dev/null && ! eval apt-get check $XAPTOPT $XSTDERR ; then debug_echo "error encountered in cron job with \"apt-get check\"." exit 0 fi
signature.asc
Description: Digital signature