2013年2月24日日曜日

Linux yum でエラー



yum でbindをインストールしようとしても、以下のようにエラーになってしまいました。


--------------------------------------------------------

[root@linux ~]# yum install bind*
Loaded plugins: refresh-packagekit, rhnplugin
RHN との通信中にエラーが発生しました。
RHN Satellite または RHN Classic のサポートは無効になります。
サーバとの通信中にエラーが発生しました。メッセージ:
接続がタイムアウトしました
Setting up Install Process
Nothing to do

--------------------------------------------------------


名前解決もルーティングも問題なく、インターネットへ出れる状態ですが、yum でエラーになってしまっています。

--------------------------------------------------------

[root@linux ~]# ping www.yahoo.co.jp
PING www.g.yahoo.co.jp (124.83.235.204) 56(84) bytes of data.
64 bytes from f9.top.vip.ogk.yahoo.co.jp (124.83.235.204): icmp_seq=1 ttl=51 time=22.3 ms
64 bytes from f9.top.vip.ogk.yahoo.co.jp (124.83.235.204): icmp_seq=2 ttl=51 time=22.0 ms


--------------------------------------------------------



ルーティングを変えたりしていたら、エラーの内容が変わっていました。


--------------------------------------------------------


[root@linux etc]# yum check-update

Loaded plugins: refresh-packagekit, rhnplugin
RHN との通信中にエラーが発生しました。
RHN Satellite または RHN Classic のサポートは無効になります。
サーバとの通信中にエラーが発生しました。メッセージ:
ホストへの経路がありません


--------------------------------------------------------




特に yum.conf へプロキシの設定を入れているわけでもありません。

---------------------------------------------------------------------


[root@linux ~]# more /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

---------------------------------------------------------------------




最終的には原因不明だったのですが、今までのyumエラーは結局はインターネットへ出れていない状態でエラーになっていたようです。

インターネットへは問題なかったはずなのですが、何か違っていたのでしょうね。。。

突然 yum のアップデートがかかるようになりました。




0 件のコメント:

コメントを投稿