![关于多元宇宙的 apt-get 警告?](https://linux22.com/image/1205372/%E5%85%B3%E4%BA%8E%E5%A4%9A%E5%85%83%E5%AE%87%E5%AE%99%E7%9A%84%20apt-get%20%E8%AD%A6%E5%91%8A%EF%BC%9F.png)
每次使用 apt-get update 时都会收到以下警告
W: Skipping acquire of configured file 'multiverse//binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'multiverse/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse//i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'multiverse/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse//cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' doesn't have the component 'multiverse/' (component misspelt in sources.list?)
不确定我是否应该担心这个?我在 Google 上搜索过这些警告,但没有找到有相同警告的人,只有相同类型的警告。
内容/etc/apt/sources.list
:
deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main universe restricted m$
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe restricted mu$
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
第二条命令
cat /etc/apt/sources.list | grep multiverse
:
deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe restricted multiverse/
答案1
删除 bionic-updates 行中 multiverse 后面的 /。
您可以在错误消息中看到错误的双斜线。
multiverse**//**binary-amd64/Packages
然后sudo apt update
重试。