sudo apt updateを起動すると、Ubuntu 21.04が表示されます。

sudo apt updateを起動すると、Ubuntu 21.04が表示されます。
Hit:1 (https://)dl.google.com/linux/chrome/deb stable InRelease
Hit:2 (https://)dl.winehq.org/wine-builds/ubuntu hirsute InRelease                                                                  
Hit:3 (https://)archive.ubuntu.com/ubuntu hirsute InRelease                                                                          
Hit:4 (https://)ppa.launchpad.net/numix/ppa/ubuntu hirsute InRelease   
Hit:5 (https://)archive.canonical.com/ubuntu hirsute InRelease         
Hit:6 (https://)archive.ubuntu.com/ubuntu hirsute-updates InRelease
Hit:7 (https://)archive.ubuntu.com/ubuntu hirsute-backports InRelease
Hit:8 (https://)archive.ubuntu.com/ubuntu hirsute-security InRelease
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-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/i18n/Translation-en_US' 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?)
W: Skipping acquire of configured file 'universe/binary-amd64/Packages' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository '(http://)archive.canonical.com/ubuntu hirsute 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 hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en_US' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/Components-amd64.yml' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/icons-48x48.tar' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/icons-64x64.tar' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/dep11/[email protected]' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/cnf/Commands-amd64' as repository '(http://)archive.canonical.com/ubuntu hirsute InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)

「sudo apt update」を起動すると、この問題が発生します。この問題を解決するには?注:リンクを配置できないため、https://を(https://)に変更しました。

答え1

Debian または Ubuntu リポジトリの場合、通常は Web ブラウザを使用してリポジトリディレクトリの内容を表示できます。

たとえば、リポジトリURLがある場合は、最後にhttps://archive.canonical.com/ubuntu追加して次を見つけます。/distshttps://archive.canonical.com/ubuntu/dists。今、archive.canonical.comのhttpsバージョンがダウンしているようです。だから、httpバージョンを見る代わりに。

ディレクトリを参照して、その中にあるかサブディレクトリがhirsuteないかを直接確認することができます(まあ、これはリポジトリインフラストラクチャの一部なので、ここでは重要ではありません)。universemultiversepartnerby-hash

一方、HTTPバージョンアーカイブ。Ubuntu.comuniverseリポジトリがありますmultiverse

したがって、そのURLを使用するには、/etc/apt/sources.listそのファイルおよび/またはディレクトリ内のすべてのファイルを*.list編集して、リポジトリとURLを参照する行を変更する必要があります。*.sources/etc/apt/sources.list.d/universemultiversehttps://archive.canonical.com/ubuntuhttp://archive.ubuntu.com/ubuntu

関連情報