关于yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx.

问题:

当我们在命令行写下yum clean all && yum makecache,出现yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx.

解决:

我的是CentOs6.8系统,大家可以对照自己的版本来操作.

1.挂载镜像(重点

mount /dev/cdrom /media

mount /dev/dvd /media

2. cd /etc/yum.repos.d/

3.vim CentOS-Media.repo(重点是要把gpgcheck设置为0,enabled设置为1)

4.保存退出

5.yum clean all 

6.yum makecache

官方已经不再对 CentOS 6.8系统进行维护了,所以在更新源方面会比较麻烦,建议使用rpm下载软件,可以去官方网址https://vault.centos.org/6.8/os/x86_64/Packages/找对应版本的rpm包进行下载,步骤虽多,但比较稳定。

附上:

1.CentOS 6.8离线安装Nginx:离线CentOS 6.8 64Bit 安装 NGINX_clear_xiaolin的博客-CSDN博客_centos6离线安装nginx

2.gcc-c++-4.4.7-17安装( rpm包方式):

gcc-c++-4.4.7-17安装 rpm包方式_cookie的专栏-CSDN博客_gcc4.4.7 rpm

3.关于yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx:关于yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx._u011495642的博客-CSDN博客

4.error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

https://blog.csdn.net/weixin_44297303/article/details/89505398

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值