当我试图从Ubuntu18.04升级到Ubuntu20.04时,我被卡住了。升级时,它显示:0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded。
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中已经存在相同的行。
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。
发布于 2020-12-23 12:55:25
ubuntu-release-upgrader将用新的Ubuntu密码名focal重新生成/etc/apt/sources.list.d/下的sources.list和第三方存储库。
检查您的/etc/apt/sources.list,它应该包含(至少):
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示例。
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然后跑:
sudo apt update
sudo apt dist-upgradehttps://unix.stackexchange.com/questions/625813
复制相似问题