yum update error failed to retrieve repodata/filelists.xml.gz from ol6_x86_64_latest

When performing an update through yum I received the following error.

---> Package redhat-lsb-core.x86_64 0:4.0-7.0.1.el6 will be installed
ol6_x86_64_latest/filelists                                                    |  28 MB     00:39     
ol6_x86_64_latest/filelists                                                    |  28 MB     00:45     
Error: failed to retrieve repodata/filelists.xml.gz from ol6_x86_64_latest
       error was [Errno -1] Metadata file does not match checksum
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

The error was still present after trying both suggested work arounds. Yum uses a cache to speed operations and this cache can become corrupt overtime. In the case of the error above clearing the Yum cache and rebuilding it solved the problem.

To clear the yum cache use the clean all command.

[root@wrath ~]# yum clean all
Loaded plugins: refresh-packagekit, rhnplugin, security
Cleaning repos: ol6_x86_64_latest
Cleaning up Everything

[root@wrath ~]#

Next rebuild the cache with the makcache command

[root@wrath ~]# yum makecache
Loaded plugins: refresh-packagekit, rhnplugin, security
ol6_x86_64_latest                                                              | 1.4 kB     00:00     
ol6_x86_64_latest/group                                                        | 1.1 MB     00:01     
ol6_x86_64_latest/filelists                                                    |  28 MB     00:37     
ol6_x86_64_latest/updateinfo                                                   | 540 kB     00:00     
ol6_x86_64_latest/primary                                                      |  26 MB     00:42     
ol6_x86_64_latest/other                                                        | 191 MB     05:46     
ol6_x86_64_latest                                                                         20831/20831
ol6_x86_64_latest                                                                         20831/20831
ol6_x86_64_latest                                                                         20831/20831
Metadata Cache Created
[root@wrath ~]# 

After running the makecache you should now be able to perform a yum update without error.

1 thought on “yum update error failed to retrieve repodata/filelists.xml.gz from ol6_x86_64_latest”

Leave a Reply

Your email address will not be published. Required fields are marked *