解决yum安装失败的一些经验

yum安装遇到的一些问题,今天mark一下


1.problem:

yum -y install docker-io
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.cn99.com
 * updates: mirrors.cn99.com
http://download.fedoraproject.org/pub/epel/6/i386/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again


问题一开始其实没找准,问题在于红字部分,明显在提醒我  ssl 链接失败, 百度一下是证书过期,

solve:1.将  /etc/yum.repos.d/epel.repo 的enable改为0,

2.下载证书,yum install ca-certificates

3.安装成功后将步骤1的enable 改回1

阅读更多
换一批

yum在线安装失败?????

12-19

用yum在线安装总是失败,网络中yum需要代理已经设置了。配置的源用IE可以登录,就是不知道问题出在哪里。下面是出错的提示,和配置信息。是什么地方配置的不对??????????rnrn1,yum install ***rn提示失败:rnLoaded plugins: langpacks, presto, refresh-packagekitrnAdding en_US to language listrnhttp://mirrors.163.com/fedora/releases/14/Everything/i386/os/repodata/repomd.xml: [Errno 14] HTTP Error 407 : http://mirrors.163.com/fedora/releases/14/Everything/i386/os/repodata/repomd.xml rnTrying other mirror.rnError: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try againrnrnrn2,yum的reporn[fedora]rnname=Fedora $releasever - $basearchrnfailovermethod=priorityrn#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/rnbaseurl=http://mirrors.163.com/fedora/releases/$releasever/Everything/$basearch/os/rn#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearchrnenabled=1rnmetadata_expire=7drn#gpgcheck=0rngpgcheck=1rngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearchrnrn[fedora-debuginfo]rnname=Fedora $releasever - $basearch - Debugrnfailovermethod=priorityrn#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/rnbaseurl=http://mirrors.163.com/fedora/releases/$releasever/Everything/$basearch/debug/rn#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearchrnenabled=1rnmetadata_expire=7drn#gpgcheck=0rngpgcheck=1rngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearchrnrn[fedora-source]rnname=Fedora $releasever - Sourcernfailovermethod=priorityrn#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/rnbaseurl=http://mirrors.163.com/fedora/releases/$releasever/Everything/source/SRPMS/rn#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearchrnenabled=1rnmetadata_expire=7drn#gpgcheck=0rngpgcheck=1rngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearchrnrnrn3,yum设置代理,/etc/yum.conf:rn[main]rncachedir=/var/cache/yum/$basearch/$releaseverrnkeepcache=1rndebuglevel=2rnlogfile=/var/log/yum.logrnexactarch=1rnobsoletes=1rngpgcheck=1rnplugins=1rninstallonly_limit=3rncolor=neverrnrnproxy=http://***.***.***:***/rnproxy_username=***rnproxy_password=***rnrnrnrnrn

没有更多推荐了,返回首页