当我尝试使用 apt 添加存储库时,我收到一条消息,说明 sources.list 中可能存在拼写错误,说它没有找到“重新限制”的组件。我手动编辑了所有这些行以说“受限制”(当然是在备份原始版本之后) - 这修复了它,只是为了遇到不同的错字。
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?)
我假设“合作伙伴”应该是“合作伙伴”,但第一行证明情况并非如此,因为它也找不到组件“合作伙伴”。解决这个问题是否值得,或者没有它,存储库将正常工作?
有什么办法可以检查这实际上应该说什么?
并非每个存储库都提供来自每个组件的包。例如,您列表中的第一个存储库http://archive.ubuntu.com/ubuntu/dists/focal/提供来自 、 和 ( 的包
main
是multiverse
不同restricted
的universe
)by-hash
。但是你在向这个 repo 索要一个partner
它不提供的组件,所以您将需要浏览您的存储库列表。对于每一个,您都需要检查 repo 提供了哪些组件(从目录结构、repo 的描述等)以及哪个组件包含您感兴趣的包。然后相应地编辑您的
sources.list
。