PR

yum update – depsolving problems 解決!

yum update したら依存関係でエラーが出たので調査して解決しました。
その時のメモ。
時間がない人向けの答えは↓

# yum clean all
# yum update

経過
# yum update すると

audispd-plugins-1.7.7-6.el5_3.2.i386 from updates has depsolving problems
  --> Missing Dependency: audit-libs = 1.7.7-6.el5_3.2 is needed by package audispd-plugins-1.7.7-6.el5_3.2.i386 (updates)
audispd-plugins-1.7.7-6.el5_3.2.i386 from updates has depsolving problems
  --> Missing Dependency: audit = 1.7.7-6.el5_3.2 is needed by package audispd-plugins-1.7.7-6.el5_3.2.i386 (updates)
Error: Missing Dependency: audit = 1.7.7-6.el5_3.2 is needed by package audispd-plugins-1.7.7-6.el5_3.2.i386 (updates)
Error: Missing Dependency: audit-libs = 1.7.7-6.el5_3.2 is needed by package audispd-plugins-1.7.7-6.el5_3.2.i386 (updates)

audispd-plugins に問題があるそうなので、チェック

# rpm -q audispd-plugins
パッケージ audispd-plugins はインストールされていません。

あり?ということなので、インストール

# yum install audispd-plugins
Installing:
  audispd-plugins    i386   1.7.7-6.el5_3.3   updates    44 k
Updating:
  audit              i386   1.7.7-6.el5_3.3   updates   365 k
  audit-libs         i386   1.7.7-6.el5_3.3   updates    77 k
  audit-libs-python  i386   1.7.7-6.el5_3.3   updates    77 k

これでこれは解決。はい、次!

--> Processing Dependency: /usr/share/magic.mime for package: httpd
--> Finished Dependency Resolution
httpd-2.2.3-22.el5.centos.i386 from installed has depsolving problems
--> Missing Dependency: /usr/share/magic.mime is needed by package httpd-2.2.3-22.el5.centos.i386 (installed)
Error: Missing Dependency: /usr/share/magic.mime is needed by package httpd-2.2.3-22.el5.centos.i386 (installed)

一応 ls で magic.mime の存在は確認できたので、パッケージをチェック。
どのファイルが rpm のパッケージに含まれているのかは rpm -qf で確認してパッケージの情報を参照してみた。

# rpm -qf /usr/share/magic.mime
file-4.17-15
# yum info file
Installed Packages
Name       : file
Arch       : i386
Version    : 4.17
Release    : 15
Size       : 1.6 M
Repo       : installed
Summary    : ファイルの種類を判断するためのユーティリティ
URL        : http://www.darwinsys.com/file/
License    : distributable
Description: ~~省略~~

Available Packages
Name       : file
Arch       : i386
Version    : 4.17
Release    : 15.el5_3.1
Size       : 316 k
Repo       : updates
Summary    : ファイルの種類を判断するためのユーティリティ
URL        : http://www.darwinsys.com/file/
License    : distributable
Description: ~~省略~~

インストール済みでバージョンアップできるようだ。
ただし、httpd の依存関係のエラーが出ているので単純にはいきそうにない。
一度 httpd を削除すれば問題ないと思うが、そうもいかないので 調べて「yum Dependency problem」を斜め読みして実行!
解決しました!
画面で見ていた限り問題は起きていませんが、rpm の更新で設定ファイルなどに変更が起きていないかチェックをします。

find / \( -name '*.rpmsave' -o -name '*.rpmnew' \) -print

特に変更が見られないようなので終了。

コメント

タイトルとURLをコピーしました