c/fe

http://d.hatena.ne.jp/uzulla から移行しました。

yumのglibc-commonでエラー

しばらくYumでエラーが出ていたのを放置していたのだが、重い腰を上げて治した。
(環境はNTTのWebarena SuitePro v2、VPS

オチからいって、glibc-commonがarch違いで、x86_64とi686が同居してたのが不味いっぽい。
yum erase glibc.i686 ったらupdate通るようになった。


しかし、lib周りを消したりするのは全くオススメができないので、気を付けましょう。何がうごかなくなるか、わかったもんじゃない。

[root@sv rpm]# yum update
Loading "priorities" plugin
Loading "fastestmirror" plugin
Loading "protectbase" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
0 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Resolving Dependencies

    • > Populating transaction set with selected packages. Please wait.
      • > Package glibc-common.x86_64 0:2.3.4-2.41.el4_7.1 set to be updated

snip!

      • > Package curl.x86_64 0:7.12.1-11.1.el4_7.1 set to be updated
    • > Running transaction check
    • > Processing Dependency: glibc-common = 2.3.4-2.41 for package: glibc

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 138, in main
(result, resultmsgs) = base.buildTransaction()
File "__init__.py", line 343, in buildTransaction
File "depsolve.py", line 254, in resolveDeps
File "depsolve.py", line 385, in _processReq
File "depsolve.py", line 498, in _requiringFromInstalled
File "sqlitesack.py", line 413, in returnNewestByNameArch
repomd.mdErrors.PackageSackError: No Package Matching glibc.i686

[root@sv rpm]# yum list|grep glibc
glibc.i686 2.3.4-2.41 installed
glibc.x86_64 2.3.4-2.41 installed
glibc-common.x86_64 2.3.4-2.41 installed
glibc-devel.x86_64 2.3.4-2.41 installed
glibc-headers.x86_64 2.3.4-2.41 installed
glibc-kernheaders.x86_64 2.4-9.1.103.EL installed
compat-glibc.x86_64 1:2.3.2-95.30 base
compat-glibc-headers.x86_64 1:2.3.2-95.30 base
glibc.x86_64 2.3.4-2.41.el4_7.1 update
glibc-common.x86_64 2.3.4-2.41.el4_7.1 update
glibc-devel.x86_64 2.3.4-2.41.el4_7.1 update
glibc-headers.x86_64 2.3.4-2.41.el4_7.1 update
glibc-profile.x86_64 2.3.4-2.41.el4_7.1 update
glibc-utils.x86_64 2.3.4-2.41.el4_7.1 update

[root@sv rpm]# yum erase glibc.i686
Loading "priorities" plugin
Loading "fastestmirror" plugin
Loading "protectbase" plugin
Setting up Remove Process
Resolving Dependencies

    • > Populating transaction set with selected packages. Please wait.
      • > Package glibc.i686 0:2.3.4-2.41 set to be erased
    • > Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
glibc i686 2.3.4-2.41 installed 14 M

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 1 Package(s)
Total download size: 0
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Removing : glibc ######################### [1/1]

Removed: glibc.i686 0:2.3.4-2.41
Complete!

[root@sv rpm]# yum update
Loading "priorities" plugin
Loading "fastestmirror" plugin
Loading "protectbase" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
0 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Resolving Dependencies

    • > Populating transaction set with selected packages. Please wait.
      • > Package php-pear.x86_64 0:4.3.9-3.22.15 set to be updated
      • > Package glibc-common.x86_64 0:2.3.4-2.41.el4_7.1 set to be updated

snip!

      • > Package curl.x86_64 0:7.12.1-11.1.el4_7.1 set to be updated
    • > Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
glibc-common x86_64 2.3.4-2.41.el4_7.1 update 16 M

snip!

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 21 Package(s)
Remove 0 Package(s)
Total download size: 31 M
Is this ok [y/N]: y
Downloading Packages:
(1/21): php-pear-4.3.9-3. 100% |=========================| 482 kB 00:00
(2/21): glibc-common-2.3. 100% |=========================| 16 MB 00:01

snip!

(21/21): curl-7.12.1-11.1 100% |=========================| 233 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : tzdata ####################### [ 1/42]
Updating : glibc-common ####################### [ 2/42]
Updating : glibc ####################### [ 3/42]
Stopping sshd:[ OK ]
Starting sshd:[ OK ]
Updating : krb5-libs ####################### [ 4/42]
snip!
Cleanup : curl ####################### [42/42]

Updated: audit.x86_64 0:1.0.16-3.el4_7.1 audit-libs.x86_64 0:1.0.16-3.el4_7.1 bind.x86_64 20:9.2.4-30.el4_7.2 bind-libs.x86_64 20:9.2.4-30.el4_7.2 bind-utils.x86_64 20:9.2.4-30.el4_7.2 cups-libs.x86_64 1:1.1.22-0.rc1.9.27.el4_7.5 curl.x86_64 0:7.12.1-11.1.el4_7.1 glibc.x86_64 0:2.3.4-2.41.el4_7.1 glibc-common.x86_64 0:2.3.4-2.41.el4_7.1 glibc-devel.x86_64 0:2.3.4-2.41.el4_7.1 glibc-headers.x86_64 0:2.3.4-2.41.el4_7.1 krb5-devel.x86_64 0:1.3.4-60.el4_7.2 krb5-libs.x86_64 0:1.3.4-60.el4_7.2 libpng.x86_64 2:1.2.7-3.el4_7.2 php.x86_64 0:4.3.9-3.22.15 php-gd.x86_64 0:4.3.9-3.22.15 php-mbstring.x86_64 0:4.3.9-3.22.15 php-mysql.x86_64 0:4.3.9-3.22.15 php-pear.x86_64 0:4.3.9-3.22.15 php-pgsql.x86_64 0:4.3.9-3.22.15 tzdata.noarch 0:2009f-1.el4
Complete!
[root@sv rpm]#