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

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



Your message dated Wed, 28 May 2008 14:02:05 +0000
with message-id <E1K1ME9-0001Aa-Fg@ries.debian.org>
and subject line Bug#459344: fixed in apt 0.7.14
has caused the Debian Bug report #459344,
regarding /etc/cron.daily/apt exits with return code 1, despite being configured to do nothing
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
459344: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459344
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.7.9
Severity: normal

Hi!

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
things.
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



--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 0.7.14

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive:

apt-doc_0.7.14_all.deb
  to pool/main/a/apt/apt-doc_0.7.14_all.deb
apt-transport-https_0.7.14_i386.deb
  to pool/main/a/apt/apt-transport-https_0.7.14_i386.deb
apt-utils_0.7.14_i386.deb
  to pool/main/a/apt/apt-utils_0.7.14_i386.deb
apt_0.7.14.dsc
  to pool/main/a/apt/apt_0.7.14.dsc
apt_0.7.14.tar.gz
  to pool/main/a/apt/apt_0.7.14.tar.gz
apt_0.7.14_i386.deb
  to pool/main/a/apt/apt_0.7.14_i386.deb
libapt-pkg-dev_0.7.14_i386.deb
  to pool/main/a/apt/libapt-pkg-dev_0.7.14_i386.deb
libapt-pkg-doc_0.7.14_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.7.14_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 459344@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <mvo@debian.org> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 28 May 2008 15:19:12 +0200
Source: apt
Binary: apt apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source all i386
Version: 0.7.14
Distribution: unstable
Urgency: low
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Michael Vogt <mvo@debian.org>
Description: 
 apt        - Advanced front-end for dpkg
 apt-doc    - Documentation for APT
 apt-transport-https - APT https transport
 apt-utils  - APT utility programs
 libapt-pkg-dev - Development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - Documentation for APT development
Closes: 322470 387141 438803 459344 473360 479122 479313 479326 479342 479379 479403 479426 479452 479748 479777 479792 479847 479871 480125 480150 480561 480662 482476
Changes: 
 apt (0.7.14) unstable; urgency=low
 .
   [ Christian Perrier ]
   * Mark a message from dselect backend as translatable
     Thanks to Frédéric Bothamy for the patch
     Closes: #322470
 .
   [ Program translations ]
   * Simplified Chinese updated. Closes: #473360
   * Catalan fixes. Closes: #387141
   * Typo fix in Greek translation. Closes: #479122
   * French updated.
   * Thai updated. Closes: #479313
   * Italian updated. Closes: #479326
   * Polish updated. Closes: #479342
   * Bulgarian updated. Closes: #479379
   * Finnish updated. Closes: #479403
   * Korean updated. Closes: #479426
   * Basque updated. Closes: #479452
   * Vietnamese updated. Closes: #479748
   * Russian updated. Closes: #479777
   * Galician updated. Closes: #479792
   * Portuguese updated. Closes: #479847
   * Swedish updated. Closes: #479871
   * Dutch updated. Closes: #480125
   * Kurdish added. Closes: #480150
   * Brazilian Portuguese updated. Closes: #480561
   * Hungarian updated. Closes: #480662
 .
   [ Otavio Salvador ]
   * Apply patch to avoid truncating of arbitrary files. Thanks to Bryan
     Donlan <bdonlan@fushizen.net> for the patch. Closes: #482476
   * Avoid using dbus if dbus-daemon isn't running. Closes: #438803
 .
   [ Michael Vogt ]
   * debian/apt.cron.daily:
     - apply patch based on the ideas of Francesco Poli for better
       behavior when the cache can not be locked (closes: #459344)
Checksums-Sha1: 
 d4021981f7b95ba3dbc90f17f7948f0187952149 1147 apt_0.7.14.dsc
 4ba8fab2346d71853defe86ef0d9058f520e693a 1944110 apt_0.7.14.tar.gz
 f03947cdee6859e0764a18ff255c1dac1bbb0b9d 96854 apt-doc_0.7.14_all.deb
 6bcf18d76912d3acf687b6d7163054743348824d 121650 libapt-pkg-doc_0.7.14_all.deb
 a3b13d64bd1bc3dc54ee04ebab77cbb5b04576a4 1650552 apt_0.7.14_i386.deb
 1cc7e75a955ec3941c691227551a76a61dc4acc0 104804 libapt-pkg-dev_0.7.14_i386.deb
 a61651ff5ce9edc794682e7bd7879a62faa78e58 192990 apt-utils_0.7.14_i386.deb
 d2eb3076a3c34f5000d03a049c93bd8d6a0748dd 54942 apt-transport-https_0.7.14_i386.deb
Checksums-Sha256: 
 9e0313f98f8c12071b0648710c30a0e9830934db92d308b5a441bac6470bebc6 1147 apt_0.7.14.dsc
 8fc06effaf8a4e4333308eedcdc6840f1c8056f2e924210f151dfc076bcd4045 1944110 apt_0.7.14.tar.gz
 cbd9ff260faa5578f4f788e58d13fd0e51bbaab1886e1dac89e030ea404dd197 96854 apt-doc_0.7.14_all.deb
 a8f52cef9ec35a73d0efe92a8297dc631f4c2522fca342db37ded1126c0a6ab1 121650 libapt-pkg-doc_0.7.14_all.deb
 d67ff469bb411a9255559619be93587cf2a706e5d8648b1ef54a903dc21f3891 1650552 apt_0.7.14_i386.deb
 1863932fb3329ea8bbbca873f85621c86d1c7fe00cb1a780d19ee821b09c253d 104804 libapt-pkg-dev_0.7.14_i386.deb
 c08d03301cc63ffc61d04876b52c53af779bc59e92de517348974c4e64245b1f 192990 apt-utils_0.7.14_i386.deb
 e730daeb7951c5e845860bed6e0ec4a2dc601f127afc8a372cf3f9e738549c2e 54942 apt-transport-https_0.7.14_i386.deb
Files: 
 297e89ccb67af59f31e4280e0c79c647 1147 admin important apt_0.7.14.dsc
 19efa18fb1ef20c58b9b44e94258b814 1944110 admin important apt_0.7.14.tar.gz
 1217379c369da9911683c104d2beb8cc 96854 doc optional apt-doc_0.7.14_all.deb
 d5184b9df8d3bffe8c1ec142d58f38d0 121650 doc optional libapt-pkg-doc_0.7.14_all.deb
 faf295f61e4b953477ae1df54d5fae7c 1650552 admin important apt_0.7.14_i386.deb
 45b3f4bebb443670e37d220f1df5714f 104804 libdevel optional libapt-pkg-dev_0.7.14_i386.deb
 6e44ea4162f11f5dd0dff9696c16a01c 192990 admin important apt-utils_0.7.14_i386.deb
 c80751550df389c40e7f75964ef6a140 54942 admin optional apt-transport-https_0.7.14_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIPWGPliSD4VZixzQRAizKAJ4qOKZsk6kwRuw9GmfKVl7VR/7lxwCcCeVV
PJ7Tof9SowGJwwuApW3QVws=
=gUoy
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: