64bit CentOS 5 でopensslのyum update失敗

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0

なにげにyum updateをしようとすると失敗する。

なぜだ

Transaction Check Error:
  file /usr/share/man/man1/ca.1ssl.gz from install of openssl-0.9.8e-20.el5_7.1.x86_64 conflicts with file from package openssl-0.9.8e-20.el5.i686
  file /usr/share/man/man1/req.1ssl.gz from install of openssl-0.9.8e-20.el5_7.1.x86_64 conflicts with file from package openssl-0.9.8e-20.el5.i686
  file /usr/share/man/man1/x509.1ssl.gz from install of openssl-0.9.8e-20.el5_7.1.x86_64 conflicts with file from package openssl-0.9.8e-20.el5.i686

openssl周りで衝突が起こってupdate出来ない。

 

openssl           x86_64     0.9.8e-20.el5_7.1      updates       1.4 M
openssl-devel     i386       0.9.8e-20.el5_7.1      updates       1.9 M
openssl-devel     x86_64     0.9.8e-20.el5_7.1      updates       1.9 M

どうもopenssl-devel が32bit版と64bit版が混在してるせいで衝突を起こしてるらしい。

64bit版のOSやのになんで32bit版が入ってるのか。

 

yum remove でさくさく削除

[root@foo ~]# yum remove openssl-0.9.8e-20.el5.i686
=============================================================================
 Package                    Arch    Version                Repository  Size
=============================================================================
Removing:
 openssl                    i686    0.9.8e-20.el5          installed   3.4 M
Removing for dependencies:
 apr-util                   i386    1.2.7-11.el5_5.2       installed   164 k
 bind97-devel               i386    32:9.7.0-6.P2.el5_7.4  installed   1.2 M
 bind97-libs                i386    32:9.7.0-6.P2.el5_7.4  installed   2.1 M
 curl                       i386    7.15.5-9.el5_7.4       installed   463 k
 curl-devel                 i386    7.15.5-9.el5_7.4       installed   641 k
 ecryptfs-utils             i386    75-5.el5_7.2           installed   387 k
 neon                       i386    0.25.5-10.el5_4.1      installed   216 k
 nss_ldap                   i386    253-42.el5_7.4         installed   3.3 M
 openldap                   i386    2.3.43-12.el5_7.10     installed   594 k
 openssl-devel              i386    0.9.8e-20.el5          installed   4.5 M
 pam_ccreds                 i386    3-5                    installed   32 k
 postgresql-libs            i386    8.1.23-1.el5_7.3       installed   494 k
 subversion                 i386    1.6.11-7.el5_6.4       installed   11 M
 trousers                   i386    0.3.1-4.el5            installed   793 k

Transaction Summary
=============================================================================
Remove       15 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

依存出てるのは全部 i386 パッケージなので良しとする。

ついでなので i386 関係他のも削除。

 

[root@foo ~]# yum remove krb5-libs.i386 libxml2.i386 libxml2-devel.i386
==========================================================================
 Package                   Arch    Version               Repository  Size
==========================================================================
Removing:
 krb5-libs                 i386    1.6.1-62.el5          installed   1.4 M
 libxml2                   i386    2.6.26-2.1.12.el5_7.1 installed   1.5 M
 libxml2-devel             i386    2.6.26-2.1.12.el5_7.1 installed   10 M
Removing for dependencies:
 cups-libs                 i386    1:1.3.7-26.el5_6.1    installed   317 k
 gtk2                      i386    2.10.4-21.el5_7.7     installed   19 M
 pam_krb5                  i386    2.2.14-21.el5         installed   296 k

Transaction Summary
==========================================================================
Remove        6 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

さくっと削除

 

改めて update して無事完了っと。

 

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0

あわせて読みたい

Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /var/www/junkpot.net/tech/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273