通过删除已知的忽略翻译来加速apt-get更新
我使用apt-mirror将一些ubuntu存储库镜像到一个内部存储库但是由于https://serverfault.com/questions/93437/apt-mirror-does-not-mirror-the-i18n-directory我得到以下内容:
Ign https://internalrepo precise-updates/main Translation-en Ign https://internalrepo precise-updates/multiverse Translation-en Ign https://internalrepo precise-updates/restricted Translation-en Ign https://internalrepo precise-updates/universe Translation-en
现在我正在努力加速,因为有很多这些减慢了我们机器上的apt-get update
。
有什么方法我可以告诉sources.list.d
文件或apt-get
甚至没有尝试获取这些(我想这会加速它而不是点击忽略)?
使用Ubuntu 12.04
我通过添加fallowing线修复了这个问题:
Acquire::Languages "none";
在/etc/apt/apt.conf.d/00aptitude
结束时(在终端中使用sudo -H gedit /etc/apt/apt.conf.d/00aptitude
编辑此文件)。
在我这样做之后, sudo apt-get update
运行得更快。