關於64位和32位yum源衝突問題

關於64位和32位yum源衝突問題mysql

        這個段時間安裝了個CentOS5.5 64位系統,直接拷貝了原32位的yum源地址使用,在安裝mysql時發生了錯誤:nginx

Dependencies Resolved正則表達式

===================================================================================
 Package        Arch            Version                     Repository        Size
===================================================================================
Installing:
 mysql          i386            5.0.77-4.el5_6.6            updates          4.8 M
 mysql          x86_64          5.0.91-1.el5                nginx            3.5 M
sql

Transaction Summary
===================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)
centos

Total size: 8.3 M
Total download size: 3.5 M
Downloading Packages:
http://www.21andy.com/centos/5/x86_64/mysql-5.0.91-1.el5.x86_64.rpm: [Errno 4] IOError: <urlopen error (110, '\xe8\xbf\x9e\xe6\x8e\xa5\xe8\xb6\x85\xe6\x97\xb6')>
Trying other mirror.
ide

        開始的時候還覺得是yum源出了問題,可是仔細看了一下發現是版本的操做系統位出了問題,yum先找到的是"mysql          i386            5.0.77-4.el5_6.6            updates          4.8 M
"而後找到的是64位的mysql,因此這裏有衝突,安裝失敗。url

解決方法:spa

修改/etc/yum.conf文件:操作系統

#vi /etc/yum.confdebug

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2

……   

exclude=*.i?86   ----> 添加

……

exclude選項支持正則表達式,*.i?86能夠用來過濾掉i386,i686等32bit包

        若是發現安裝仍是不成功,用「 #yum remove \*.i\?86 」來查找是否安裝了什麼32位的軟件包有衝突,而後刪除。

相關文章
相關標籤/搜索