sources.list 中有拼写错误吗?

sources.list 中有拼写错误吗?

当我尝试使用 apt 添加存储库时,我收到一条消息,提示 sources.list 中可能存在拼写错误,表示未找到“restrited”组件。我手动编辑了所有这些行,将其改为“restricted”(当然是在备份原始版本之后)——这样就解决了问题,但又遇到了另一个拼写错误。

W: Skipping acquire of configured file 'partner/source/Sources' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partner' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/dep11/[email protected]' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partnet/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'partnet' (component misspelt in sources.list?)

我假设“partner”应该是“partner”,但第一行证明情况并非如此,因为它也找不到组件“partner”。修复这个问题是否值得,或者即使没有它,存储库也能正常工作?

有什么方法可以检查这实际上应该说什么吗?

答案1

并非每个存储库都提供每个组件的软件包。例如,列表中的第一个存储库,http://archive.ubuntu.com/ubuntu/dists/focal/,提供来自 、 和 的软件包mainmultiverse有所restricted不同universeby-hash。但是您要求此存储库提供组件partner,而它不提供该组件,因此

(...)存储库(...)没有组件“partner”(组件在 sources.list 中拼写错误?)

您需要查看存储库列表。对于每个存储库,您需要检查存储库提供哪些组件(从目录结构、存储库描述等)以及哪个组件包含您感兴趣的包。然后sources.list相应地编辑您的。

相关内容