8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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で探してくれる。

8
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
8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?