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

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

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

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

Q&A

解決済

1回答

6073閲覧

sudo apt-get update のエラー Ubuntu

hanayama

総合スコア11

Ubuntu

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

0グッド

0クリップ

投稿2020/12/24 03:20

#わからない事
AWSEC2にログインをしてEC2インスタンスの環境構築をしています。

その際sudo apt-get updateを行うとネットワークに接続できませんというエラーになってしまいました。

EC2にログインした際も接続に失敗しました等の警告が出たのでAWS側のインターネット設定の問題かなとは思っているのですが全体像が理解しきれてないため、どこを確認すればいいのかがわかりません。

わかる方いましたら是非知恵を貸して欲しいです。
よろしくお願いしますm(__)m

バージョン
Ubuntu 20.04.1

#エラー

$ sudo apt-get update [sudo] password for hanayama: Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Err:2 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu focal InRelease Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.168.29.123), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.199.72.88), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.7.22), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.22.77), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.192.197), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.204.122), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.168.13.207), connection timed out Err:3 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease Unable to connect to ap-northeast-1.ec2.archive.ubuntu.com:http: Err:4 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease Unable to connect to ap-northeast-1.ec2.archive.ubuntu.com:http: Reading package lists... Done W: Failed to fetch http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.168.29.123), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.199.72.88), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.7.22), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.22.77), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.192.197), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.248.204.122), connection timed out Could not connect to ap-northeast-1.ec2.archive.ubuntu.com:80 (54.168.13.207), connection timed out W: Failed to fetch http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Unable to connect to ap-northeast-1.ec2.archive.ubuntu.com:http: W: Failed to fetch http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Unable to connect to ap-northeast-1.ec2.archive.ubuntu.com:http: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to security.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out W: Some index files failed to download. They have been ignored, or old ones used instead.

ログインした時に出た警告

1 update can be installed immediately. 0 of these updates are security updates. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

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

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

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

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

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

guest

回答1

0

自己解決

根本的な解決にはなっていませんがAWSのネットワーク設定の問題ではなくUbuntuの問題だったらしく、OSをAmazon Linuxにしてやり直しました。

投稿2020/12/24 06:53

hanayama

総合スコア11

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問