質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

コマンド

コマンドとは特定のタスクを行う為に、コンピュータープログラムへ提示する指示文です。多くの場合、コマンドはShellやcmdようなコマンドラインインターフェイスに対する指示文を指します。

Q&A

解決済

1回答

3429閲覧

sudo apt update が失敗する

Bacotch

総合スコア1

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

コマンド

コマンドとは特定のタスクを行う為に、コンピュータープログラムへ提示する指示文です。多くの場合、コマンドはShellやcmdようなコマンドラインインターフェイスに対する指示文を指します。

0グッド

0クリップ

投稿2022/09/22 01:02

前提

ubuntu server 22.04.1 LTS

発生している問題・エラーメッセージ

Ign:1 http://jp.archive.ubuntu.com/ubuntu jammy InRelease Ign:2 http://jp.archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:3 http://jp.archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:4 http://jp.archive.ubuntu.com/ubuntu jammy-security InRelease Err:5 http://jp.archive.ubuntu.com/ubuntu jammy Release Cannot initiate the connection to jp.archive.ubuntu.com:80 (160.26.2.185). - connect (101: Network is unreachable) Err:6 http://jp.archive.ubuntu.com/ubuntu jammy-updates Release Cannot initiate the connection to jp.archive.ubuntu.com:80 (160.26.2.185). - connect (101: Network is unreachable) Err:7 http://jp.archive.ubuntu.com/ubuntu jammy-backports Release Cannot initiate the connection to jp.archive.ubuntu.com:80 (160.26.2.185). - connect (101: Network is unreachable) Err:8 http://jp.archive.ubuntu.com/ubuntu jammy-security Release Cannot initiate the connection to jp.archive.ubuntu.com:80 (160.26.2.185). - connect (101: Network is unreachable) Reading package lists... Done E: The repository 'http://jp.archive.ubuntu.com/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://jp.archive.ubuntu.com/ubuntu jammy-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://jp.archive.ubuntu.com/ubuntu jammy-backports Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://jp.archive.ubuntu.com/ubuntu jammy-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

試したこと

ufwを使用しているため、無効化(disacble)後に再起動してから検証→同じエラー

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

注意: この回答は事実に基づかない個人の想像が含まれます。

添付されているログを確認すると,aptのリポジトリが http://jp.archive.ubuntu.com/ubuntu (日本語でインストールした時のもの)です。
証拠は手元にないのですが標準の日本のレポジトリだと,特にkernelが更新された直後等アクセスが集中するタイミングでよくタイムアウトが発生しているような気がします。
(水・木曜日あたりが多い気が…)

ですので,おそらく数日後にはアクセスできるようになっているはずです。

対策ですが,たとえばgoogle検索で引っかかったhttps://pg-fan.com/blog/ubuntu-20-04-aptの情報のように,
国内の別のミラーサーバーにレポジトリを書き換えるということが考えられます。
私も実機にインストールしているubuntuは全て国内ミラーサイトにレポジトリを変更しています。

ただ,欠点も無い訳ではなくてカタログはすぐに更新されるのですが,パッケージの実体がなかなか本家からミラーサイトに降りてこず,何日も保留状態になることがよくあります。

それでもタイムアウトエラーになることはめったにないので,勇気があればレポジトリ変更も一つの案ではないでしょうか。

投稿2022/09/22 14:28

ujimushi_sradjp

総合スコア2091

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問