I've accidentally deleted all contents of /var/cache files. I managed to reinstall most by doing dpkg -S /var/cache
and apt-get --reinstall install PACKAGE_NAME
(see here) on every package that I've found.
I still have some missing files into some directories. I re-created them but after rebooting, the problem was still here. Those are the packages with some files missing:
- bind
- dictionaries-common
- fontconfig
- ldconfig
Any ideas on how to force them to regenerate their files?
/var/cache
in the file hierachy standard is that way that it shouldn't hurt if you delete any file under/var/cache
. – Axel Beckert Dec 09 '14 at 23:22/var/cache
, I'd write a bug report. ;-) (Actuallyapt
had such a bug until a few years ago. It refused to work, if the directory/var/cache/apt/archives/partial/
didn't exist. But that's history.) – Axel Beckert Dec 10 '14 at 22:29