首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >试图从Ubuntu18.04升级到20.04“多重宇宙”(组件在sources.list中拼写错误?)

试图从Ubuntu18.04升级到20.04“多重宇宙”(组件在sources.list中拼写错误?)
EN

Unix & Linux用户
提问于 2020-12-23 07:36:55
回答 1查看 3.3K关注 0票数 0

当我试图从Ubuntu18.04升级到Ubuntu20.04时,我被卡住了。升级时,它显示:0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded

代码语言:javascript
复制
W: Skipping acquire of configured file 'multiverse/binary-amd64/Packages' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/i18n/Translation-en_IN' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/i18n/Translation-en_GB' as repository 'http://archive.canonical.com/ubuntu bionic 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.canonical.com/ubuntu bionic InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/dep11/Components-amd64.yml' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/dep11/icons-48x48.tar' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/dep11/icons-64x64.tar' as repository 'http://archive.canonical.com/ubuntu bionic 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.canonical.com/ubuntu bionic InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)

我尝试了sudo nano /etc/apt/sources.list,它说在sources.list中已经存在相同的行。

代码语言:javascript
复制
deb http://archive.canonical.com/ubuntu bionic partner

我在网上找到了解决方案。将该行:deb http://archive.canonical.com/ubuntu bionic multiverse partner替换为此行:deb http://archive.canonical.com/ubuntu bionic partner。但我的sources.list中已经出现了同样的行。

现在我无法从Ubuntu18.04升级到Ubuntu20.04。

EN

回答 1

Unix & Linux用户

发布于 2020-12-23 12:55:25

ubuntu-release-upgrader将用新的Ubuntu密码名focal重新生成/etc/apt/sources.list.d/下的sources.list和第三方存储库。

检查您的/etc/apt/sources.list,它应该包含(至少):

代码语言:javascript
复制
deb http://archive.ubuntu.com/ubuntu focal main 
deb http://archive.ubuntu.com/ubuntu focal-updates main 
deb http://security.ubuntu.com/ubuntu focal-security main 

下面是一个启用了sources.list的restricted universe multiverse示例。

代码语言:javascript
复制
deb http://archive.ubuntu.com/ubuntu focal main restricted  universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse

然后跑:

代码语言:javascript
复制
sudo apt update
sudo apt dist-upgrade
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/625813

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档