对这些警告有任何想法吗?我正在运行刚刚升级到最新补丁的 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?)
每个包裹都会重复多次警告
编辑:在谷歌翻译之后,似乎 apt-get update 抱怨在http://archive.canonical.com/ubuntu/dist/cosmic
main
中找不到,这是真的。您是否收到与http://it.archive.canonical.com/ubuntu cosmic InRelease 行相同的错误,因为该存储库在树中确实有文件夹。对于损坏的存储库路径 packages.gz 文件似乎位于http://archive.canonical.com/ubuntu/dists/cosmic/partner/binary-amd64/所以我认为你需要做的是解决这个问题在 Ubuntu 软件源窗口中启用 **Canonical Partners **。(Ubuntu 软件中心 > 编辑 > 软件源)或编辑和添加/取消注释main
/etc/apt/sources.list
deb http://archive.canonical.com/ubuntu cosmic partner
并注释掉
deb http://archive.canonical.com/ubuntu cosmic InRelease
=================================