Solved network unreachable when installing Android
While preparing for the Madrid edition of the Android Developer Lab, which will happen in a few hours (you know, why doing something in advance, if you can do it at the latest hour), I found an installation problem in my Debian testing (Squeeze of the day) box. I was installing the newest (2.1) Android SDK, via the Android installer (as found in tools r04). When trying to get the list of available packages, I got:
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Network is unreachable
After some tinkering, I found the problem (and fix), in How to resolve an issue “Network is unreachable” in Java applications. It seems that it is related to how applications capable of both IPv4 and IPv6 work, and it can be fixed by writing in /etc/sysctl.d/bindv6only.conf the following line:
net.ipv6.bindv6only = 0
…and rebooting, since the kernel needs to read this option when booting.
Apparently the problem happens not only in Android, but also in other Java applications, such as Eclipse.
Tags: English
Posted in Debian, Life in Squeeze 5 Comments »

