LoginSignup
10
9

More than 5 years have passed since last update.

apt-get が Reading package lists... となって死ぬほど遅いとき

Last updated at Posted at 2013-09-16

問題

apt-get installapt-get update しようとしたら軒並み以下の様な感じになって死ぬほど遅い。使いものにならないです。

$ sudo apt-get -y install python-pip
Reading package lists... 12%

キャッシュクリアしてもだめ。
クリーンインストールしまくってたからディスク1ヶ月ももたずに逝ったか?と思って悲しくなったのですが、諦めきれずに探したらありました。

原因

またIPv6ですか。。。
SELinuxと並んであるあるですよ。

解決法

以下の項目を設定します。

/etc/gai.conf
# 最後に追記
precedence ::ffff:0:0/96  100

システムを再起動します。

sudo apt-get -y update

快適。

参考サイト

嘆いている方々

本質的な答え

10
9
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
10
9