我似乎无法apt
更新 - 除了deb-src
启用软件包和docker
存储mozilla
库之外,我的 apt 配置应该是相当标准的(而且似乎它们不是问题) - 有人知道我该怎么做才能解决这个问题吗?
$ sudo apt-get update
Hit:1 http://gb.archive.ubuntu.com/ubuntu mantic InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu mantic-updates InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu mantic-backports InRelease
Hit:4 https://download.docker.com/linux/ubuntu mantic InRelease
Hit:5 http://security.ubuntu.com/ubuntu mantic-security InRelease
Get:6 https://packages.mozilla.org/apt mozilla InRelease [1,350 B]
Get:7 https://packages.mozilla.org/apt mozilla/main amd64 Packages [81.4 kB]
Err:8 https://packages.mozilla.org/apt mozilla/main all Packages
400 Bad Request [IP: 34.160.78.70 443]
Fetched 81.4 kB in 1s (65.0 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages.mozilla.org/apt/dists/mozilla/main/binary-all/Packages 400 Bad Request [IP: 34.160.78.70 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
apt-get clean
在尝试更新之前先进行操作,感谢@ChuckLiu 提供的链接