One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: centosplus/$releasever/x86_64
echo 7 > /etc/yum/vars/releasever
uncommenting baseurl
etc/yum.repos/ repos
分享到:
相关推荐
centos6_64 yum配置,一键搞定.centos6_64 yum配置,一键搞定
yum安装MySQL
CentOS6.9安装的yum源 一不小心删除yum源后重新安装的文件
本文档是MySQL官方文档,内容是如何在Centos7环境下用yum工具安装MySQL8。
详细介绍CentOS yum的详细使用方法。
Centos下的yum安装包
CentOS yum 源配置文档.
介绍如何在RHEL5没有subscription的情况下换用centos yum源
# 删除redhat自带的yum包 rpm -qa|grep yum|xargs rpm -e --nodeps...rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-3.4.3-150.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
centos9_StreamISO镜像及yum源配置文件和配置方法
yum 安装 Nginx 为懒人准备。 第三方yum源(CentOS默认的标准源里没有nginx软件包)
centos 6.2用yum安装中文输入法
centos6.1 yum源打包: 直接覆盖到 /etc/
Centos 6 yum 国内源 非常难找。 附带 gmp-4.3.2.tar.bz2 mpc-0.8.1.tar.gz mpfr-2.4.2.tar.bz2
卸载yum及python rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps 安装 rpm -Uvh --replacepkgs python*.rpm rpm -Uvh --replacepkgs libxml2-...
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-3.2.22-26.el5.centos.noarch.rpm 三个安装包
CentOS7配置本地yum源(超详细过程)
centos yum.repo.d yum常用的桌面的yum配置文件
Centos下的yum安装包
亲自解决公司yum问题,特别研究编著.解决redhat在5.0及6.0的yum使用问题。