多元宇宙存储库更新警告消息

多元宇宙存储库更新警告消息

为了安装 MS-core-fonts,我刚刚将以下存储库添加到 ubuntu 21.04:

sudo add-apt-repository multiverse

现在,每次我运行apt update命令时都会多次收到以下警告消息:

$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
Hit:2 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease
Hit:3 http://archive.canonical.com/ubuntu hirsute InRelease
Hit:4 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu hirsute-security InRelease [101 kB]
Fetched 101 kB in 2s (65.3 kB/s)   
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'multiverse/binary-i386/Packages' as repository 'http://archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/binary-amd64/Packages' as repository 'http://archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/i18n/Translation-fa_IR' as repository 'http://archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/i18n/Translation-fa' as repository 'http://archive.canonical.com/ubuntu hirsute 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 hirsute 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 hirsute 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 hirsute 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 hirsute InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'multiverse/dep11/[email protected]' as repository 'http://archive.canonical.com/ubuntu hirsute 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 hirsute InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)

我注意到在添加该存储库之前,多元宇宙存储库在 ubuntu 软件中处于活动状态,但之前没有出现这样的错误。

结果/etc/apt/sources.list如下:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu hirsute restricted main multiverse

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu hirsute-updates restricted main multiverse

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu hirsute universe
deb http://archive.ubuntu.com/ubuntu hirsute-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu hirsute-backports universe restricted main multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu hirsute multiverse partner

deb http://archive.ubuntu.com/ubuntu hirsute-security restricted main multiverse
deb http://archive.ubuntu.com/ubuntu hirsute-security universe

那么,多元宇宙存储库现在存在什么问题?

答案1

@RayWoodcock 解释得很好:

[基本想法是,您的 sources.list 试图从不包含多元宇宙内容的存储库中获取多元宇宙内容。sources.list 中的某些存储库会自动添加“多元宇宙”一词,而没有多元宇宙材料的存储库则必须手动将其删除。

http://archive.canonical.com/ubuntu不是通用存储库。您之所以收到这些警告,是因为您错误地尝试将该源视为通用源。

下面我们来看一下:

W: Skipping acquire of configured file 'multiverse/binary-i386/Packages'
 as repository 'http://archive.canonical.com/ubuntu hirsute InRelease' 
 doesn't have the component 'multiverse' (component misspelt in sources.list?)

看? ”X 源没有“多元宇宙”“。而 X 是http://archive.canonical.com/ubuntu

该源仅应用于partnerrepo。删除其用于其他一切用途的内容。

文件的第 31 行当前内容为:

deb http://archive.canonical.com/ubuntu hirsute multiverse partner

编辑该文件,使行改为:

deb http://archive.canonical.com/ubuntu hirsute partner

看看是怎么multiverse从线上移除的?

最后,由于您已更改了来源,

sudo apt update

相关内容