[fixed] raspbian / debian apt-get connect (101: Network is unreachable)

Are you having issues
When I ran:
$> sudo apt-get install mosh
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libio-pty-perl libprotobuf7 libutempter0
The following NEW packages will be installed:
libio-pty-perl libprotobuf7 libutempter0 mosh
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 767 kB of archives.
After this operation, 2,190 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libio-pty-perl armhf 1:1.08-1
Cannot initiate the connection to mirrordirector.raspbian.org:80 (5.153.225.207). – connect (101: Network is unreachable)
….
 
To fix this error:
$> sudo route add default gw 192.168.1.1
This will add the default gateway to route… as the RPi can’t find it’s way out of the network.
 


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *