我每天都会从apt-cacher-ng
cron 作业中收到以下消息:
/etc/cron.daily/apt-cacher-ng:
Error(s) occured while updating volatile index files for apt-cacher-ng.
Please visit http://proxy.localnet:3142/report.html to rerun the
expiration manually or check the error message(s) in the current log file(s).
当我运行它时,我总是在完全相同的文件上收到错误。它总是 *.xz 文件。
An error occured while reading this file, some contents may have been ignored. Tag
Parsing metadata in debrep/dists/jessie/main/binary-amd64/Packages.xz
An error occured while reading this file, some contents may have been ignored. Tag
Parsing metadata in debrep/dists/jessie/main/binary-i386/Packages.xz
An error occured while reading this file, some contents may have been ignored. Tag
Parsing metadata in debrep/dists/jessie/main/source/Sources.xz
我删除了它们,apt-cacher-ng 网页界面一切正常,但是当我在其中一个客户端上执行 apt-get update 时,这些文件又出现了同样的错误。
我一直在寻找解决方案,但似乎找不到任何遇到此问题的人。
答案1
我遇到了同样的问题,发现了这一点官方 Debian 错误报告. 安装较新版本的apt-cacher-ng软件包帮我解决了这个问题。如果你还在使用 wheezy(就像我一样),请尝试下载并安装反向移植手动。
欢呼吧,迈克尔