I am tring to install X11 server on a RHEL6 server
yum groupinstall "X Window System" "Desktop" "Fonts"
but I am getting the following error:
Error Downloading Packages:
libart_lgpl-2.3.20-5.1.el6.x86_64: failed to retrieve getPackage/libart_lgpl-2.3.20-5.1.el6.x86_64.rpm from prod-epel-x86_64-server-6
error was [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=prod-epel-x86_64-server-6 clean metadata
After running the yum --enablerepo=prod-epel-x86_64-server-6 clean metadata
command, I am receiving the same error message.
How can I fix this?
The error keeps coming back because it's using a mirror that is probably not fully sync'ed. So the package does not match the MD5 hash.
You can try to specify a different mirror or use yum-fastestmirror plugin so it detects the fastest one automatically.
EDIT
usually deleting the yum cache solves the problem, try these commands:
and then try to install X11. Also this can indicate a problem with the repo itself which in that case you need to specify the mirror you want to use in the yum conf file
Cheers.
You should not need any EPEL to install the "X Window System" pkg group. (the repositories provided to you by your Red Hat Subscription should be enough)
Furthermore, the error you recieve could be an error on the client end, but it could also indicate that something is wrong in the yum repo you are using: I don't know what software have created the "prod-epel-x86_64-server-6", but it could indicate a duplicate (ie two packages with same name exists in same repo) or else the pkg changed since repo was created. (maybe metadata was generated before the package completely was updated to repo or something).
Anyway, since you should not need this repo to install the "X Window System" pkg group, I think you should do this:
And then make a more thorough examination about what is going on with the "prod-epel-86_64-server-6" repo. If it is in your control, you could try regenerating metadata for it.