It looks like your Hex installation is damaged. Try the installation using mix local.hex --force .
You can also try manually downloading and installing the latest version.
$ wget http://s3.amazonaws.com/s3.hex.pm/installs/1.1.0/hex-0.11.5.ez $ mix archive.install hex-0.11.5.ez
source share