Re: apt cache files (*.bin) corruption
In article <[🔎] email@example.com>,
José Alburquerque<firstname.lastname@example.org> wrote:
> I'm really no expert, just suggesting as best I know to help with what
> I've seen, but I really don't think that running apt-file is what
> corrupts your bin files. Maybe others know better? Thanks.
You could be right.
I have a cron job that runs overnight and does:
/usr/bin/aptitude update 2>&1 > /dev/null
/usr/bin/apt-file update 2>&1 > /dev/null
/usr/bin/aptitude -d -y -f dist-upgrade 2>&1 > /dev/null
/usr/bin/aptitude -s -y -f dist-upgrade 2>&1 | /usr/bin/Mail andy -s "Package status"
/usr/bin/aptitude autoclean 2>&1 > /dev/null
This is corrupting the files pretty much every night.
However, if I run this script manually (after deleting the *.bin files) then
it completes successfully (I assumed it was the apt-file that was doing it
because I generally just run aptitude update when I do it manually).