Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17779

What am I missing?

$
0
0

Greetings, fellow admins. I'm in the process of setting up a local yum repo for updates so that my servers don't have to access the public internet for them. Most of the channels I've setup in the .repo file work fine. However, when yum runs, say a 'yum install {pkg}' it complains that:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: local_ol6_x86_64_UEK_latest. Please verify its path and try again

Now, from my /etc/yum.repos.d/yum.repo file I have the following config:

[local_ol6_x86_64_UEK_latest] name=Oracle Linux $releasever Unbreakable Kernel latest ($basearch) baseurl=http://hostremovedforsecurity/yum/OracleLinux/OL6/UEK/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=1

And here's an ls from the actual files on disk: [root@host repodata]# pwd /admin/yum/OracleLinux/OL6/UEK/latest/x86_64/repodata [root@host repodata]# ls filelists.sqlite.bz2 other.xml.gz repomd.xml filelists.xml.gz primary.sqlite.bz2 updateinfo.xml.gz other.sqlite.bz2 primary.xml.gz

Any guesses?

EDIT: I found it! in the .repo file, my name= and baseurl= only LOOKED like separate lines, but were actually the same line. So, vi the repo file and put in a carriage return. Wow, that was hard to find.

submitted by pupp3t33r
[link][3 comments]

Viewing all articles
Browse latest Browse all 17779

Trending Articles