Linux Error  yum return error: [Errno 256] No more mirrors to try

Sometime we face this error while doing Linux pataching or installation.

Issue

yum update fails with the error : [Errno 256] No more mirrors to try
yum update fails with :- Error Downloading Packages:  InstallMedia: [Errno 256] No more mirrors to try.

Resolution


1) Check the network connectivity
2) Check what files are present under /etc/yum.repos.d directory

Remove unnecessary xxxx.repo file from "/etc/yum.repos.d"

Remove old yum cache from system by running following commands: 

# yum clean all

Manual remove  yum cache

# cd /var/cache/yum/
# ll
# rm -rf *


# Check if you can list the valid repositories by :- 

# yum repolist

I hope this will fix above  issue - yum return error: [Errno 256] No more mirrors to try
 
Top
Maintained By Amit Maheshwari