执行 apt update 时收到大量警告“跳过获取”

执行 apt update 时收到大量警告“跳过获取”

执行此操作时,sudo apt update我收到如下所示的警告。这非常烦人,而且有点令人担忧,但为什么会发生这种情况呢?

W:跳过获取配置文件“partner/binary-amd64/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-i386/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en_GB”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/Components-amd64.yml”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-48x48.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-64x64.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-i386”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/cnf/Commands-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-i386/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-amd64/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en_GB”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/Components-amd64.yml”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-48x48.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-64x64.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-i386”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/cnf/Commands-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-i386/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-amd64/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en_GB”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/Components-amd64.yml”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-48x48.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-64x64.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-i386”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/cnf/Commands-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-amd64/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-i386/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en_GB”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/Components-amd64.yml”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-48x48.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-64x64.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-i386”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/cnf/Commands-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-amd64/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/binary-i386/Packages”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/i18n/Translation-en_GB”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/Components-amd64.yml”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-48x48.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/dep11/icons-64x64.tar”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-i386”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/Contents-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)
W:跳过获取配置文件“partner/cnf/Commands-amd64”,因为存储库“http://gb.archive.ubuntu.com/ubuntu bionic-proposed InRelease”没有组件“partner”(组件在 sources.list 中拼写错误?)

答案1

我已经有一段时间没有使用 Ubuntu 了(我上次使用的是 14.04)所以不确定它是否还能起作用。

转到设置并选择系统,选择美国或英国的更新服务器,然后单击检查更新(换句话说,使用非控制台方式检索更新)。

如果这不管用,那就麻烦大了。看起来组件在 sources.list 中可能拼写错误,或者缺少它们的配对,这意味着如果更改更新服务器不能自动修复它,您必须检查 sources.list。

  1. 首先打开控制台并输入“sudo nano /etc/apt/sources.list”检查 sources.list 中是否存在拼写错误和缺失参数。如果您没有对 sources.list 进行任何更改,您可以谷歌搜索默认值并将其复制粘贴到 sources.list (确保在默认 sources.list 中搜索与您拥有的发行版相同的发行版本!!!!)
  2. 解决此问题的最简单方法是备份所有重要内容并重新安装操作系统。

相关内容