yum updateでエラー(Error: Package: 2:irqbalance-1.0.7-5.el6.x86_64)
古いCentOS6のサーバにyum update
をかけたら依存の問題で以下のエラーがでて、更新できなかった。
# yum update ... Error: Package: 2:irqbalance-1.0.7-5.el6.x86_64 (base) Requires: kernel >= 2.6.32-358.2.1 Installed: kernel-2.6.32-71.el6.x86_64 (@anaconda-CentOS-201106060106.x86_64/6.0) kernel = 2.6.32-71.el6 kernel = 2.6.32-71.el6 Installed: kernel-2.6.32-71.29.1.el6.x86_64 (@updates) kernel = 2.6.32-71.29.1.el6 kernel = 2.6.32-71.29.1.el6
カーネルが古すぎて、あたらしいカーネルを必要とするパッケージが入れられないのはわかるので、yum update kernel
などを行ってみたが
No Packages marked for Update
と表示されてアップデートできず。調べたところ/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=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum distroverpkg=centos-release # 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 exclude=kernel*
最後のexclude=kernel*
をコメントアウトしたら、無事アップデートできた。