答案1
这解决方案对我有用:
在编辑apt-cacher.conf服务器上的文件:
sudo nano /etc/apt-cacher/apt-cacher.conf
取消注释“ubuntu_release_names“并将其替换为:
ubuntu_release_names = dapper, edgy, feisty, gutsy, hardy, intrepid, jaunty, karmic, lucid, maverick, natty, oneiric, precise, quantal, raring, saucy, trusty, utopic, vivid, wily, xenial
取消注释“index_files_regexp“并将其替换为:
index_files_regexp = ^(?:Index(?:\.bz2)?|(?:Sources|Packages|release)(?:\.gz|\.bz2|\.xz)?|Release(?:\.gpg)?|InRelease|Contents-(?:[a-z]+-)?[a-zA-Z0-9]+\.gz|(?:srclist|pkglist)\.[a-z-]+\.bz2|Translation-[a-z]{2,3}(?:_[A-Z]{2}(?:\.[a-zA-Z0-9-]+)?)?(?:\.gz|\.bz2|\.xz|\.lzma)?|Components-[a-z0-9]+\.yml(?:\.gz|\.bz2)?|icons-[0-9]+x[0-9]+\.tar(?:\.gz)?)$
保存更改并退出。
Ctrl+o,Ctrl+x
重新开始apt-cacher
sudo service apt-cacher restart
最后在装有 Ubuntu 16.04 的电脑上
sudo apt-get clean
sudo apt-get update