apt
Contents
默认不\xe2\x80\x99下载文件;如果它\xe2\x80\x99s在你的系统上这样做,它\xe2\x80\x99s可能是因为你apt-file
也安装了。在这种情况下,要禁用Contents
下载,请禁用相应的配置文件:
sudo mv /etc/apt/apt.conf.d/50apt-file.conf{,.disabled}\n
Run Code Online (Sandbox Code Playgroud)\n这将导致apt update
跳过Contents
文件。结果,apt-file
将无法工作,或者充其量只能使用过时的信息;为了能够使用它并更新其索引,请重新启用配置文件:
sudo mv /etc/apt/apt.conf.d/50apt-file.conf{.disabled,}\n
Run Code Online (Sandbox Code Playgroud)\n然后再次运行apt update
。