yum問題収集

1433 ワード

前言
ふだん見たいくつかの技巧を記録して、不時の必要に備える。
yum源問題
epelソースを追加し、参考 http://fedoraproject.org/wiki/EPEL 対応バージョンの「epel-release」を選択し、ソースを追加すれば、ELL 6を例として調べられます。
yum install http://mirrors.opencas.cn/epel/6/i386/epel-release-6-8.noarch.rpm
yum本地源
mkdir -p /mnt/centos
mount -o loop CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos/


cat /etc/yum.repos.d/CentOS-Media.repo

# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c6-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c6-media [command]

[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
yum問題記録
[root@core /]# yum list

Loaded plugins: fastestmirror

Determining fastest mirrors

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

--->    
yum upgrade ca-certificates --disablerepo=epel
yumシリーズ問題
1. yum  install salt-minion

....
file /usr/lib64/python2.6/zipfile.pyo from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-2.6.6-36.el6.x86_64

Error Summary

--->    
2. yum install python-libs      

        python

yum update python

    yum  install salt-minion