Upgrade to version 3.13 from 3.9 is failing

cat /etc/os-release

NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

Steps : 1)https://www.aerospike.com/docs/operations/upgrade/cluster_to_3_13 Downloaded aerospike-server-community-3.13.0.11-el6.tgz from Index of /artifacts/aerospike-server-community/3.13.0.11

  1. tar -xvf aerospike-server-community-3.13.0.11-el6.tgz

  2. cd aerospike-server-community-3.13.0.11-el6

4)sudo ./asinstall

Error : Error downloading packages:
  python26-pexpect-2.3-6.6.amzn1.noarch: Cannot find a valid baseurl for repo: amzn-main/latest

Installing toml
Collecting toml
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/toml/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/toml/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/toml/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/toml/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/toml/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(101, 'Network is unreachable'))': /simple/toml/

If you cat the asinstall script, you can see it’s just trying to fetch some python libraries for the new tools version. You can try to add a different repo and install these tools yourself, or you could just rpm -Uvh the aerospike-server rpm and keep your existing tools.