ServerProtect for Linux インストール作業中に、前提パッケージが入らず本気で悩んだのでメモを残す。
yum力が足りないコピペerで本当すいません。
yumのデータベースが破損してる可能性があるのでyum checkを実行して、重複登録されてしまったパッケージを削除してしまえばよい。
破損時
$ sudo yum install glibc Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirror.keystealth.org Setting up Install Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. --> Running transaction check ---> Package glibc.i686 0:2.12-1.132.el6_5.1 will be installed --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.132.el6_5.1.i686 --> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.132.el6_5.1.i686 ---> Package glibc-devel.i686 0:2.12-1.132.el6_5.1 will be installed ---> Package glibc-static.i686 0:2.12-1.132.el6_5.1 will be installed --> Running transaction check ---> Package nss-softokn-freebl.i686 0:3.14.3-10.el6_5 will be installed --> Finished Dependency Resolution Error: Multilib version problems found. This often means that the root cause is something else and multilib version checking is just pointing out that there is a problem. Eg.: 1. You have an upgrade for glibc which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of glibc of the different architecture. If you exclude the bad architecture yum will tell you what the root cause is (which package requires what). You can try redoing the upgrade with --exclude glibc.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of glibc installed, but yum can only see an upgrade for one of those arcitectures. If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work. 3. You have duplicate versions of glibc installed already. You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). Protected multilib versions: glibc-2.12-1.132.el6_5.1.i686 != glibc-2.12-1.132.el6.x86_64 Error: Protected multilib versions: nss-softokn-freebl-3.14.3-10.el6_5.i686 != nss-softokn-freebl-3.14.3-9.el6.x86_64
修復
★:重複登録されているパッケージ
$ sudo yum check > yum.log $ cat yum.log Loaded plugins: fastestmirror, priorities ★glibc-2.12-1.132.el6_5.1.x86_64 is a duplicate with glibc-2.12-1.132.el6.x86_64 ★glibc-common-2.12-1.132.el6_5.1.x86_64 is a duplicate with glibc-common-2.12-1.132.el6.x86_64 ★nss-softokn-freebl-3.14.3-10.el6_5.x86_64 is a duplicate with nss-softokn-freebl-3.14.3-9.el6.x86_64 python-requests-1.1.0-4.el6.noarch has missing requires of python-ordereddict python-urllib3-1.5-7.el6.noarch has missing requires of python-ordereddict tzdata-2014b-1.el6.noarch is a duplicate with tzdata-2013i-1.el6.noarch
重複パッケージ削除
orenoprotect$ yum remove glibc-2.12-1.132.el6.x86_64 glibc-common-2.12-1.132.el6.x86_64 nss-softokn-freebl-3.14.3-9.el6.x86_64 Loaded plugins: fastestmirror, priorities Setting up Remove Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. --> Running transaction check ---> Package glibc.x86_64 0:2.12-1.132.el6 will be erased ---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be erased ---> Package nss-softokn-freebl.x86_64 0:3.14.3-9.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================================================ Removing: glibc x86_64 2.12-1.132.el6 @base 12 M glibc-common x86_64 2.12-1.132.el6 @base 107 M nss-softokn-freebl x86_64 3.14.3-9.el6 @base 459 k Transaction Summary ============================================================================================================================================================================================================ Remove 3 Package(s) Installed size: 120 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : nss-softokn-freebl-3.14.3-9.el6.x86_64 1/3 Erasing : glibc-2.12-1.132.el6.x86_64 2/3 Erasing : glibc-common-2.12-1.132.el6.x86_64 3/3 Verifying : glibc-common-2.12-1.132.el6.x86_64 1/3 Verifying : nss-softokn-freebl-3.14.3-9.el6.x86_64 2/3 Verifying : glibc-2.12-1.132.el6.x86_64 3/3 Removed: glibc.x86_64 0:2.12-1.132.el6 glibc-common.x86_64 0:2.12-1.132.el6 nss-softokn-freebl.x86_64 0:3.14.3-9.el6 Complete!
これでServerProtectのインストールが出来るようになりました。
続きはsuz-lab – blog: CentOS6(EC2)にServerProtectをインストールをインストールです!