I am trying to install a command line client from Amazon EMR docs.

I am using this command:

Code:
$sudo apt-get install ruby-full
But I get this error

Code:
Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    amzn   | 2.1 kB     00:00
    java   | 9.9 kB     00:00 ...
    http://hg.openjdk.java.net/jdk7u/jdk7u/repodata/repomd.xml: [Errno -1]  Error   importing repomd.xml for java: Damaged repomd.xml file
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: java.
    Please verify its path and try again
Can someone guide me on how to resolve this?