I'm in the process of setting up a hadoop cluster for learning purpose. For which I tried to install java and before installing i checked for the prior installation of java by running java -version command and got the below message
The program 'java' can be found in the following packages: * default-jre * gcj-5-jre-headless * openjdk-8-jre-headless * gcj-4.8-jre-headless * gcj-4.9-jre-headless * openjdk-9-jre-headless Try: sudo apt install
As per the advise in one of the threads I ran sudo apt-get update and got the below messages repeatedly
$sudo apt-get update 0% [Connecting to ap-south-1.ec2.archive.ubuntu.com (54.168.13.207)]
Err:1 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease Could not connect to ap-south-1.ec2.archive.ubuntu.com:80 (54.248.192.197), connection timed out [IP: 54.248.192.197 80]
Err:2 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease Unable to connect to ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
Err:3 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease Unable to connect to ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
Err:4 http://security.ubuntu.com/ubuntu xenial-security InRelease Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::19). - connect (101: Network is unreachable) [IP: 2001:67c:1562::19 80]
Reading package lists... Done
W: Failed to fetch http://ap-south-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not connect to ap-south-1.ec2.archive.ubuntu.com:80 (54.248.192.197), connection timed out [IP: 54.248.192.197 80]
W: Failed to fetch http://ap-south-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Unable to connect to ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
W: Failed to fetch http://ap-south-1.ec2.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Unable to connect to ap-south-1.ec2.archive.ubuntu.com:http: [IP: 54.248.192.197 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::19). - connect (101: Network is unreachable) [IP: 2001:67c:1562::19 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
What should i do now ?
Will i face a similar problem while installin hadoop too ?
Thanks