So in the past few weeks I have been studying to take the RHCSA, and in my studies have been using both RHEL 6.5 at work, and CentOS 6.5 as a playground environment at home. (Since both are essentially the same. I came across in interesting little issue, while recently installing CentOS on my laptop at the house.
CentOS installation fails with the message:
“Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated”.
Now, naturally, I went and performed some google-fu, and came up with a variety of articles, and forum posts/reply’s that ranged from everything like: re-install until it works, to edit source .conf files to omit directories, to update paths to some .xml files, to pray to the linux gods for help.. Actually, this is a very simple issue to overcome. and really doesn’t require any files edits at all. (Unless you really like doing that sort of thing – I don’t, if I can avoid it)
Simply click the “Edit” button on the prompt, and Add the corresponding repository server.
In case of CentOS 6.5 64bit: http://mirror.centos.org/centos/6.5/os/x86_64/
or if on 32 bit: http://mirror.centos.org/centos/6.5/os/i386/
After I made this change, my installer happily went on its merry way installing the OS.