[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#459344: /etc/cron.daily/apt exits with return code 1, despite being configured to do nothing

Package: apt
Version: 0.7.9
Severity: normal


As far as I understand (see APT configuration below),
/etc/cron.daily/apt should do absolutely nothing on my system.
Hence, it should basically behave as /bin/true .

Unfortunately, it seems that it can also behave as /bin/false
in some scenarios.
I upgraded to version 0.7.9 yesterday, used my box for some time
and then halted the system.
Today, I booted the system, logged in, and started doing some
After a short time I received a local mail message from Anacron:

  Subject: Anacron job 'cron.daily' on $MY_HOST_NAME
  Date: Sat, 05 Jan 2008 18:16:47 +0100

  run-parts: /etc/cron.daily/apt exited with return code 1

It seems that the problem is related to bug #454561, but it's not
the same.  If I read /etc/cron.daily/apt correctly, what happened
is that, when Anacron ran it, I was just in the middle of a manual

  aptitude update ; aptitude safe-upgrade

As a consequence, /etc/cron.daily/apt could not lock the cache and
exited with exit status 1.

My problem is: I didn't asked APT to do anything in an unattended
manner, why should /etc/cron.daily/apt attempt to lock the cache
and exit *with errors* when it fails to do so?!?

I think that /etc/cron.daily/apt should *entirely* refrain from
checking cache lockability or performing any other actions,
*if* APT configuration implies that the script should do nothing
at all.
When APT configuration tells that /etc/cron.daily/apt should do
nothing at all, it should behave exactly as /bin/true ...

Is there anything I failed to understand?

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";

-- (no /etc/apt/preferences present) --

-- /etc/apt/sources.list --

deb     http://mir2.ovh.net/debian/ testing main
deb-src http://mir2.ovh.net/debian/ testing main
deb     http://debian.intergenia.de/debian/ testing main
deb-src http://debian.intergenia.de/debian/ testing main

deb     http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring        2007.07.31 GnuPG archive keys of the Debian a
ii  libc6                         2.7-5      GNU C Library: Shared libraries
ii  libgcc1                       1:4.2.2-4  GCC support library
ii  libstdc++6                    4.2.2-4    The GNU Standard C++ Library v3

apt recommends no packages.

-- no debconf information

Reply to: