Unable to install X11 server on RHEL6

rhel6x11x11forwarding

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?

Best Answer

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