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

Bug#668305: apt: Silently installed cron job deletes files (despite comments to the contrary)



On Wed, Apr 11, 2012 at 06:13:27PM +0200, Helge Kreutzmann wrote:
> Hello Julien,
> On Wed, Apr 11, 2012 at 11:33:52AM +0200, Julian Andres Klode wrote:
> > On Tue, Apr 10, 2012 at 10:41:21PM +0200, Helge Kreutzmann wrote:
> > > On Tue, Apr 10, 2012 at 10:36:45PM +0200, Julian Andres Klode wrote:
> > > > On Tue, Apr 10, 2012 at 10:30:38PM +0200, Helge Kreutzmann wrote:
> > > > > Package: apt
> > > > > Version: 0.8.15.10
> > > > > Severity: important
> > > > > 
> > > > > This machine was installed last year and is running testing since. For
> > > > > a time, I was wondering why /var/cache/apt/archives was not growing as
> > > > > it did on other (older) machines. After searching I finally nailed it
> > > > > down to 
> > > > > -rw-r--r-- 1 root root 14918 Jun 30  2011 /etc/cron.daily/apt
> > > > > 
> > > > > (I removed the executable bit to verify that it was indeed the cause).
> > > > > Ever since I did this, no longer files are deleted.
> > > > > 
> > > > > I never touched this file and /etc/apt/apt.conf.d/02periodic does not
> > > > > exist on my system. According to the comments, nothing should be
> > > > > deleted automatically:
> > > > 
> > > > Do you have unattended-upgrades or update-notifier-common installed?
> > > 
> > > rc  unattended-upgrades                          0.74.3
> > > automatic installation of security upgrades
> > > ii  update-notifier-common                       0.99.3debian10
> > > Files shared between update-notifier and adept
> > > 
> > > I haven't investigated them, though and did not manually install them,
> > > probably installed as part of a task during d-i.
> > 
> > But that's the explanation for the problem, as update-notifier-common
> > installs 20archive which contains:
> > 
> > 	APT::Archives::MaxAge "30";
> > 	APT::Archives::MinAge "2";
> > 	APT::Archives::MaxSize "500";
> 
> There was no mention of "20archive" in /etc/cron.daily/apt, thus I did
> not check that. (And yes, I have that)
> 
> So there are two (three) bugs at present:
> a) /etc/cron.daily/apt does not mention 20archive [minor]
> 
> b) update-notifier-common is installed in a default install and
> deletes files without prompting the user about it [important]
> 
> And maybe
> c) Some other errors in /etc/cron.daily/apt, as stated in my initial
> mail.
> 
> > > And thanks for the *ultra fast* reply, probably the fastest I ever
> > > experienced for a bug report.
> > 
> > I probably just checked e-mails when yours came in, so I answered it
> > directly.
> 
> Then this was perfect timing, I guess :-))
> 
> Unless you object I'll clone and reassign in the next days (probably
> tomorrow).

OK. No problem. I don't know whether I'll upload a new version of
update-notifier for wheezy, though; we have switched to PackageKit
anyway for default GNOME installations (so there's not that much
sense in keeping update-notifier at all).


-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgpVb3KhyW7IL.pgp
Description: PGP signature


Reply to: