Very likely deleted by /etc/cron.daily/apt:
# This file understands the following apt configuration variables:
#
[snip]
#
# "APT::Archives::MaxAge",
# - Set maximum allowed age of a cache package file. If a cache
# package file is older it is deleted (0=disable)
#
# "APT::Archives::MaxSize",
# - Set maximum size of the cache in MB (0=disable). If the cache
# is bigger, cached package files are deleted until the size
# requirement is met (the biggest packages will be deleted
# first).
#
# "APT::Archives::MinAge"
# - Set minimum age of a package file. If a file is younger it
# will not be deleted (0=disable). Usefull to prevent races
# and to keep backups of the packages for emergency.
My /etc/apt/apt.conf.d/20archive:
APT::Archives::MaxAge "0";
APT::Archives::MaxSize "0";
APT::Archives::MinAge "2";
I have done this specifically so that I can use aptoncd, which has been
working well for me. I could have set MinAge to 0 as well, but just left
it at the default. IGRC [1], the Ubuntu default values are 30 days,
500Mb, and 2 days.
Having re-read /etc/cron.daily/apt, I might have a wee play with the
Update-Package-Lists settings. One day.
[1] If Google recalls correctly
Nick Rout wrote:
Recent discussion on aptoncd and my experience of it missing some
packages led me to investigate.
To cut a long story short, there are some missing deb files on my
system. For example there are no /var/cache/apt/archives/openssh*
files. Which means they didn't end up on the cd.
Now I am positive that there should be files there because:
(a) I iinstalled openssh-server after initial setup (ubuntu why isn't
it there by default); and
(b) I know openssh-* have been updated after I installed, because of
the recently well publicized debian and derivatives security fubar.
So why aren't the deb files there?
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================