Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated

本秂侑毒 提交于 2019-12-30 04:33:08

问题


I am new for centos installation. I downloaded a minimul version of centos 6.5, around 339.7mb of size. I am trying to install this with GUI interface but I got an error after selecting the drive option, which comes after selecting the country. This is complete message,

Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated. 

Failare:
repodata/743fec56b2af0ce8d6ec82c47a4efafc2a4d18cddfa9683f29611cb18d1a33de-primary.sqlite.bz2 from anaconda-CentOS-201311271240.i386: [Ermo 256] No more mirrors to try.   

Sorry but I am new here, so I can't put the exact image here.


回答1:


I believe that i had this same issue and was able to solve it.

The files under the /repodata folder are missing their file extensions and are not matching their full names in the "TRANS.TBL" file, under this same dir.

Rename all the files to match what is in the "TRANS.TBL" file, then try the install over again.

Please let everyone know if this works for you.

In the past i would just put a URL in that pointed to the correct files on a server, i feel that most people take this workaround and that's why it's not as hot of an item as it should be. I hope this gets fixed in the .ISO.

Thank you,

YourFriend




回答2:


It worked for me. I renamed all 8 files. i.e. 0e371b19e547b9d7a7e8acc4b8c0c7c074509d33653cfaef9e8f4fd1d62d95de 0e371b19e547b9d7a7e8acc4b8c0c7c074509d33653cfaef9e8f4fd1d62d95de-primary.sqlite.bz2

The correct file name is given in file "repomd" under folder repodata example - location href="repodata/b124f0ec5323cfee56b420906a3103f0daef656dde3f7ac8220120aa7504e57a-primary.xml.gz"




回答3:


I had exactly the same issue ; under "repodata" directory opened "repmod" xml file Searched file name within repmond xml file Found matching strings Renamed 8 files as specified in .xml file and it worked like a charm

Thanks to "Your Friend"




回答4:


I had the same problem. Even if you manage to get past this step, you will encounter at a later point other errors related to filenames.

The root cause was using Unetbootin to create the bootable media. I switched to Rufus and everything works fine now.



来源:https://stackoverflow.com/questions/21637068/unable-to-read-package-metadata-this-may-be-due-to-missing-repodata-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!