Life in Squeeze

Solved network unreachable when installing Android

Our twitter feed.
En marzo comienza el Master de Propiedad Intelectual de la Escuela de Organización Industrial, pharmacy
en el que participaremos varios libresofteros. A pesar de su título, tiene un enfoque bastante novedoso, con asignaturas como “Obras libres” o “Movimiento Open Acces”. En otras palabras, tamibén se tratan las situaciones donde los autores consideran que les conviene no reservarse todos sus “derechos”. A ver qué tal sale…
While preparing for the Madrid edition of the Android Developer Lab, stuff
which will happen in a few hours (you know, pharmacy why doing something in advance, healing 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, 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.

Posted in Debian, Life in Squeeze 8 Comments »

Eclipse in Squeeze (or the lack of)

Eclipse is no longer in Debian Squeeze. It seem sit was unmaintained, order and the release packaged was too old, generic so it was orphaned and removed from the release. Since then, online somebody has adopted it, and has packaged Eclipse 3.4 for Lenny, but it did not yet enter Squeeze, and it is not clear to me when it will.

So, I went to the Eclipse website, and got the upstream version (Eclipse 3.5). You get a tar.gz file, that you only have to unpackage, and run. However, when running it, I noticed that some buttons (all buttons?) don’t work. Fortunately, it is a known issue. A detailed explanation to the problem, and some workarounds, can be found in Debian bug #550183:

  • Explanation (and workaround 1). libgtk2.18.2-1 provides a new way of dealing with mouse clicks, which apparently Eclipse is not honoring. Downgrading to libgtk2.0-0 (in Debian stable) fixes the issue.
  • Workaround 2. “Using Enter to trigger the button works and seemingly also to click once onto the button to get it into the broken pressed-state and then pressing the mouse outside and moving it into the button to release there. This also
    triggeres the click.” (Andreas Pakulat)
  • Workaround 3. export GDK_NATIVE_WINDOWS=true before launching eclipse. Fixes completely the problem for me.

So, for now, I’m going with workaround 3…

Posted in Debian, Life in Squeeze No Comments »