[Errno 256] No more mirrors to try.

Dear all,
CentOS 6

After executing "yum update -y" command I am facing this error. Please help me out.
thanks in advance. Full error & error code is given as follow:

file:///var/lib/yum/plugins/local/repodata/75402989a793f88a7563b2b20f427e47167d12107357ab5810170d148f76aab2-filelists.sqlite.bz2: [Errno 14] Could not open/read file:///var/lib/yum/plugins/local/repodata/75402989a793f88a7563b2b20f427e47167d12107357ab5810170d148f76aab2-filelists.sqlite.bz2
Trying other mirror.
Error: failure: repodata/75402989a793f88a7563b2b20f427e47167d12107357ab5810170d148f76aab2-filelists.sqlite.bz2 from _local: [Errno 256] No more mirrors to try.
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

hi,

have you already tried to use the option

--skip-broken

as suggested by the error message?
check also for the existence and access rights on the file /var/lib/yum/plugins/local/repodata/75402989a793f88a7563b2b20f427e47167d12107357ab5810170d148f76aab2-filelists.sqlite.bz2
may you also please show ALL the output from the yum command? (not only the error message part).

see ya
fra

tried but its not working for me ...

try this

# yum clean all && yum clean metadata && yum clean dbcache && yum makecache && yum update -y

regards
ygemici

Dear YGEMICI,
report against your command is as under

[root@rash ~]# yum update -y
Loaded plugins: aliases, auto-update-debuginfo, changelog, downloadonly,
              : fastestmirror, filter-data, fs-snapshot, kabi, keys, list-data,
              : local, merge-conf, post-transaction-actions, presto, priorities,
              : protect-packages, protectbase, refresh-packagekit, remove-with-
              : leaves, rpm-warm-cache, security, show-leaves, tmprepo, tsflags,
              : upgrade-helper, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
 * rpmforge: www.mirrorservice.org
 * rpmforge-extras: www.mirrorservice.org
 * rpmforge-testing: www.mirrorservice.org
file:///var/lib/yum/plugins/local/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for _local: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: _local. Please verify its path and try again

please help me out of this frustration...

---------- Post updated at 01:55 AM ---------- Previous update was at 01:33 AM ----------

I think there is a problem in this file

var/lib/yum/plugins/local/repodata/repomd.xml

this file (repomd.xml) in my case is totally empty. there is no single word in this file.

[root@rash ~]# yum makecache
Loaded plugins: aliases, auto-update-debuginfo, changelog, downloadonly,
              : fastestmirror, filter-data, fs-snapshot, kabi, keys, list-data,
              : local, merge-conf, post-transaction-actions, presto, priorities,
              : protect-packages, protectbase, refresh-packagekit, remove-with-
              : leaves, rpm-warm-cache, security, show-leaves, tmprepo, tsflags,
              : upgrade-helper, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
file:///var/lib/yum/plugins/local/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for _local: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: _local. Please verify its path and try again

and

[root@rash ~]# yum update -y
Loaded plugins: aliases, auto-update-debuginfo, changelog, downloadonly,
              : fastestmirror, filter-data, fs-snapshot, kabi, keys, list-data,
              : local, merge-conf, post-transaction-actions, presto, priorities,
              : protect-packages, protectbase, refresh-packagekit, remove-with-
              : leaves, rpm-warm-cache, security, show-leaves, tmprepo, tsflags,
              : upgrade-helper, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
file:///var/lib/yum/plugins/local/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for _local: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: _local. Please verify its path and try again

I am not happy with these errors :mad:

then try

# yum clean headers && yum clean metadata && yum makecache
# yum update -y

if its get error(s) then try these
remove repo dir(..../repodata) and create new one

# rm -r /var/lib/yum/plugins/local/repodata
# createrepo /var/lib/yum/plugins/local/
# yum update -y

regards
ygemici

Yaaaa hoooo,,,
Thanks GOD,
I resolved my problem, I makes some changes into this file

vim /etc/yum.repos.d/_local.repo

Original file was look like this

[_local]
name=Automatic local repo. (manged by the "local" yum plugin).
baseurl=file:/var/lib/yum/plugins/local
enabled=1
gpgcheck=true
#  Metadata expire could be set to "never" because the local plugin will
# automatically cause a cache refresh when new packages are added. However
# it's really cheap to check, and this way people can dump stuff in whenever
# and it never gets out of sync. for long.
metadata_expire=1h
#  Make cost smaller, as we know it's "local". If you really want to be sure,
# you can do this ... but the name will do pretty much the same thing, and that
# way we can also see the other packages (with: --showduplicates list).
# cost=500

I makes these changes into this file

enabled=0
gpgcheck=0
#gpgcheck=true

this change makes me like this :slight_smile:

---------- Post updated at 02:32 AM ---------- Previous update was at 02:27 AM ----------

Thank you ygemici being with me...
thanks allot.

disable repo and no problem :slight_smile: