適切なアップデートとgitのインストール時にこのエラーを削除する方法

適切なアップデートとgitのインストール時にこのエラーを削除する方法

私はLinuxを初めて使用し、Ubuntu 20.04.2.0 LTSを使用しています。次の手順に従ってgitをインストールしようとしています。これ場所。sudo apt updateorコマンドを実行すると、sudo apt-get update次のエラーが返されます。

sudo 適切なアップデート

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                                  
Err:3 http://tr.archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                                         
  Temporary failure resolving 'tr.archive.ubuntu.com'
Err:4 http://tr.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                                                                 
  Temporary failure resolving 'tr.archive.ubuntu.com'
Err:5 http://tr.archive.ubuntu.com/ubuntu focal-backports InRelease
  Temporary failure resolving 'tr.archive.ubuntu.com'
Fetched 109 kB in 36s (3.074 B/s)       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://tr.archive.ubuntu.com/ubuntu/dists/focal/InRelease  Temporary failure resolving 'tr.archive.ubuntu.com'
W: Failed to fetch http://tr.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Temporary failure resolving 'tr.archive.ubuntu.com'
W: Failed to fetch http://tr.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Temporary failure resolving 'tr.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

私もやってみたsudo apt-get update 私もやったこれ解決策https://askubuntu.com/ただし、DNSを変更しても問題は解決しませんでしたTemporary failure resolving 'tr.archive.ubuntu.com'。この解決策の2番目の部分によると、deb http:/archive.canonical.com/ natty backports私のラインからラインを削除しましたが、もはやsource.listありません。

マイソースリスト

ソース、リスト

ベストアンサー1

pingの失敗によりサーバーがダウンしているようです。

 ping tr.archive.ubuntu.com

最も簡単な回避策は直接使用することですarchive.ubuntu.com。つまり、tr.プレフィックスを削除することです。

Ubuntuアーカイブには通常、速度上の理由でメインサーバーの負荷を軽減し、グローバルトラフィックを減らすためのローカルミラーがあります。tr.ミラーが閉じている理由とこれが永久的であるかどうかはわかりません。通常は動作するはずです。

おすすめ記事