WSL2 ubuntu 24.04のアーカイブミラーサーバーを変更する
WSL2 Ubuntu24.04のaptリポジトリサーバーを変更 ネットワーク設定を変更していないにも拘らず,apt での 書き換える前に必ず,バックアップを取ってください. これを適用すると,正常に apt が使用できるようになります. 変更理由
security.ubuntu.com, archives.ubuntu.com
等の公式サーバーへアクセスが出来なくなった.
ipv6 の無効化やファイアウォールの確認などを行ったが,改善しなかった. ミラーサーバーへ変更
ubuntu 24.04
から apt リポジトリの設定は/etc/apt/sources.list
ではなく,/etc/apt/sources.list.d/ubuntu.sources
で行う.
今回は最も速いICSCoEに変更します.## See the sources.list(5) manual page for further settings.
Types: deb
URIs: [このURLを書き換える]
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: [このURLを書き換える]
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg