Error: Cannot retrieve metalink for repository

If you ever get error like below in CentOS like system

[root@localhost]# yum install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

It means repository's path is outdated, you can change it to new paths or you can remove that repository,

[root@localhost]# mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.noload

Here I am renaming the file name so it will not load.

Now run the yum install command again it will install package without any issue.

[root@localhost]# yum install wget

No comments:

Post a Comment

Pages