Loaded plugins: fastestmirror, langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wudinaniya/article/details/82895628

遇到问题:

最近在使用云服务器时,发现无法使用yum安装gcc-c++等,但ping 外网,比如ping百度能ping通,说明不是网关和DNS问题。在使用yum安装gcc-c++,openssl-dev报错如下:

Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
http://mirrors.163.com/centos/7.4.1708/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

解决方案:

在命令行输入以下内容:

[root@localhost ~]# vim /etc/yum.repos.d/CentOS-Base.repo

将enabled=1即可

猜你喜欢

转载自blog.csdn.net/wudinaniya/article/details/82895628
今日推荐