LoginSignup
7
6

More than 5 years have passed since last update.

apt実行時ipv6アドレスにアクセスさせたくないときの対処

Posted at

特定の環境だと、
aptやapt-getを実行した際に、リポジトリサーバ(アップデートパッケージのある場所)にIPv6アドレスでアクセスしようとして、めっちゃ遅いときがある。

IPv4でリポジトリサーバを探させたいときは下記のコマンドを実行する。

echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4

これでIPv4で探してくれる。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6