[Apt-cacher-ng-users] Expiration wants to delete almost all packages

Tim Edwards liststuff at fastmail.com.au
Sun May 8 11:59:24 UTC 2016


On 08/05/16 20:41, Eduard Bloch wrote:
> Hallo,
> * Tim Edwards [Sat, May 07 2016, 05:38:45PM]:
>
>> I'm guessing apt-cacher-ng doesn't support this? I can't find a way to
>> turn it off though.
>> https://wiki.ubuntu.com/AptByHash
>>
> The by-hash implementation is the most likely reason. I need to extend
> the code to move the stuff correctly in the cache (todo ASAP, probably
> in the next days).
>
> There is a way to turn it off but it is a brutal one.
>
> /usr/lib/apt-cacher-ng/acngtool cfgdump | grep =.*by.hash > /etc/apt-cacher-ng/zzz_temp_override.conf
>
> And then edit the new file and remove the "by-hash" strings there, or
> better change them to NOBYHASH or something. Don't forget to remove the
> file when proper support is available.
Hi Eduard,

Thanks for your reply, I've actually just disabled the apt-cacher-ng
cron job to stop it automatically deleting the Ubuntu packages. If
you're planning to fix it I'll just leave it without running expiry
until a fix is there - after all it'll take months anyway for old files
to build up as Ubuntu updates are released.

Please post here if you do get a chance to fix it, and thanks for your
work on apt-cacher-ng!

Tim



More information about the Apt-cacher-ng-users mailing list