Two problems with this:
1. Even on 16.04 root folder populates with all downloaded/installed debs
2. I have aptly repo on ubuntu 14.04 and aptly cache gets deleted after 30 days
because of the /etc/cron.daily/apt cron job that has following lines:
eval $(apt-config shell Cache Dir::Cache::archives/d)
# sanity check
if [ -z "$Cache" ]; then <------ This is not Empty bc above returns
echo "empty Dir::Cache::archives, exiting"
# check age
if [ ! $MaxAge -eq 0 ] && [ ! $MinAge -eq 0 ]; then
debug_echo "aged: ctime <$MaxAge and mtime <$MaxAge and ctime>$MinAge
find $Cache -name "*.deb" \( -mtime +$MaxAge -and -ctime +$MaxAge \)
-and -not \( -mtime -$MinAge -or -ctime -$MinAge \) -print0 | xargs -r -0 rm -f
elif [ ! $MaxAge -eq 0 ]; then
debug_echo "aged: ctime <$MaxAge and mtime <$MaxAge only"
find $Cache -name "*.deb" -ctime +$MaxAge -and -mtime +$MaxAge -print0
| xargs -r -0 rm -f
debug_echo "skip aging since MaxAge is 0"
apt-config shell Cache Dir::Cache::archives/d returns
So any deb files on the system, no matter where get deleted after 30
I haven't changed Cache Dir::Cache::archives, so I suppose this is the
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
An empty Dir::Cache::archives is treated incorrectly and even removes
all files in the root folder
Status in APT:
Status in apt package in Ubuntu:
Dir::Cache contains locations pertaining to local cache information,
such as the two package caches srcpkgcache and pkgcache as well
as the location to place downloaded archives, Dir::Cache::archives.
Generation of caches can be turned off by setting their names to
Following this documentation, I created /etc/apt/apt.conf.d/30nocache
containing the below line to disable the cache:
To my surprise, the directory /partial is created and downloaded .deb
files get into / as well as the lock file. Even worse, when apt-get clean
is executed, all files under / get removed!
# apt-get -s clean
Del /* /partial/*
Please fix the documentation and/ or prevent /* from being removed.
- 0.8.16~exp5ubuntu13 (Ubuntu Oneiric)
- 0.8.10.3+squeeze1 (Debian Squeeze)
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~touch-packages
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp