Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile file:///mnt/repo - Go语言中文社区

Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile file:///mnt/repo


Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
No package epel-release available.
Error: Nothing to do
 

使用    下方两个命令,准备在centos7中装上可视化分区工具,结果提示上方的问题,经过多中尝试,发现使用这个方法可以正常运行。

 sudo yum install epel-release
 sudo yum install gparted

 EPEL:企业版 Linux 附加软件包,即 Extra Packages for Enterprise Linux

一、官方安装教程
RHEL/CentOS 6:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RHEL/CentOS 7:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

二、配置 EPEL 阿里源
1、备份(如有配置其他epel源)
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup

2、下载新repo 到/etc/yum.repos.d/
epel(RHEL 7)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

epel(RHEL 6)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

epel(RHEL 5)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
 

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/zai_deng_dai/article/details/117324082
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2023-01-02 18:45:36
  • 阅读 ( 410 )
  • 分类:Go Web框架

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢