对这些警告有什么想法吗?我正在运行刚刚升级到最新补丁的 ubuntu 18.10。
Hit:1 http://it.archive.ubuntu.com/ubuntu cosmic InRelease
Hit:2 http://security.ubuntu.com/ubuntu cosmic-security InRelease
Hit:3 http://archive.canonical.com/ubuntu cosmic InRelease
Hit:4 http://ppa.launchpad.net/maarten-fonville/ppa/ubuntu cosmic InRelease
Hit:5 http://it.archive.ubuntu.com/ubuntu cosmic-updates InRelease
Hit:6 https://deb.nodesource.com/node_8.x cosmic InRelease
Reading package lists... Done
W: Skipping acquire of configured file 'main/binary-amd64/Packages' as
repository 'http://archive.canonical.com/ubuntu cosmic InRelease'
doesn'thave the component 'main' (component misspelt in sources.list?)
每个包裹都会重复警告几次
答案1
编辑:谷歌翻译后,apt-get update 似乎抱怨main
没有被找到http://archive.canonical.com/ubuntu/dist/cosmic这是正确的。您是否遇到了同样的错误http://it.archive.canonical.com/ubuntucosmic InRelease 行,因为该存储库main
在树中确实有文件夹。对于损坏的存储库路径,packages.gz 文件似乎位于http://archive.canonical.com/ubuntu/dists/cosmic/partner/binary-amd64/因此,我认为您需要做的是解决这个问题,要么在 Ubuntu 软件源窗口中启用 **Canonical Partners**。(Ubuntu 软件中心 > 编辑 > 软件源)或编辑/etc/apt/sources.list
并添加/取消注释
deb http://archive.canonical.com/ubuntu cosmic partner
并注释掉
deb http://archive.canonical.com/ubuntu cosmic InRelease
================================