我正在尝试在Ubuntu22.04系统上安装rar和unrar,我认为它是多元宇宙系统(按照一些说明添加了所有多重宇宙、受限宇宙和宇宙)。
我运行了add-apt-repository multiverse、add-apt-repository restricted和add-apt-repository universe,但是在这样做并试图运行apt update -y之后,我会收到以下警告:
W: Skipping acquire of configured file 'multiverse/binary-amd64/Packages' as repository 'http://archive.canonical.com/ubuntu jammy 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 jammy InRelease' doesn't have the component 'multiverse' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/binary-amd64/Packages' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'restricted/i18n/Translation-en' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'restricted' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/binary-amd64/Packages' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)我看过类似的问题,但我发现的都是以前的Ubuntu版本或其他存储库,我不知道添加这些存储库后我的sources.list应该是什么样子。
我的sources.list文件是:
deb http://archive.ubuntu.com/ubuntu jammy universe multiverse restricted main
deb http://archive.ubuntu.com/ubuntu jammy-updates universe multiverse restricted main
deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu jammy multiverse partner restricted universe我试着在每一行的[arch=amd64]后面添加deb,但这并没有什么区别。
任何帮助都是非常感谢的,谢谢。
发布于 2023-05-02 01:40:58
结果发现文件格式错误。
用户nobody的回答在这里奏效了。https://askubuntu.com/a/1460166/1095763
如果它被删除,sources.list需要:
deb http://archive.ubuntu.com/ubuntu jammy main restricted
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted
deb http://archive.ubuntu.com/ubuntu jammy universe
deb http://archive.ubuntu.com/ubuntu jammy-updates universe
deb http://archive.ubuntu.com/ubuntu jammy multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted
deb http://archive.ubuntu.com/ubuntu jammy-security universe
deb http://archive.ubuntu.com/ubuntu jammy-security multiversehttps://askubuntu.com/questions/1466183
复制相似问题