When we were trying to install a new package and needed to perform apt-get update, we got following error and apt-get update was not working,
E: Failed to fetch ... Cannot initiate the connection to in.archive.ubuntu.com:80 - connect (101: Network is unreachable) Could not connect to in.archive.ubuntu.com:80 (22.214.171.124), connection timed out
So, primarily it shown 3 errors,
- Cannot initiate the connection to in.archive.ubuntu.com
- Network is unreachable
- connection timed out
making it little difficult to resolve this issue. We verified our network using ping, but our network was pefectly working but still it was showing “Network is unreachable”
When we tried to access in.archive.ubuntu.com from browser, it was simply not responsive, the also the IP as listed in error, 126.96.36.199 ( You may see different IP address if any such error comes ) was not pinging.
Hence the solution is to modify /etc/apt/sources.list and use the some working server URL.
So it work, we change
and then if we do “apt-get update” or install any new package, everything works fine.