Getting Azureus 3.0 running on Ubuntu Feisty without resorting to blunt objects or automatic weapons fire
Now that I set up a 1TB Ubuntu box I needed to get Azureus 3.x running on it. It turns out this is vastly harder than it should be.
My initial attempt was what all the docs say to do: sudo apt-get install azureus. After all, this is Ubuntu, the distro that will replace Windows with a free, stable, usable OS built on the principles of freedom, openness, viral licenses, and communism. Sadly, if you go this route, you’ll learn first hand the fruits of a proletariat state, in the form of starvation, torture, and ultimately, execution by inexplicable compatibility problem.
As far as I can tell, there are a few problems with the azureus package:
- It’s based on Azureus 2.5, which is the version your great grandfather used to download silent films during the Civil war
- It installs Azureus as root (which is fine), but runs it as non-root (which is fine). This is all fine, until Azureus goes to update itself to the new Horseless Carriage version (see bullet above), when it discovers it’s running as an unprivileged user and thus lacks the privs to update its own binaries
- Last but certainly not least, somewhere in the Ubuntu package dependency chain there lives the guy whose job it is to decide which Java package the
azureuspackage depends on. Unfortunately for you, this guy is a Pinko agent, so he decides to use[gcj](http://gcc.gnu.org/java/), which is the GNU clean room version of Java, licensed under the GPL (of course). This is a great idea, since Sun’s fascist license is only free as in beer and the GPL is free as in love.Much like Marxist economics, this looks absolutely fantastic on paper. In another startling parallel to Marxism, this is catastrophic in practice. Maybe, years from now, GCJ will be just as good as Sun’s Java, and we can all use GPL’d code while we take our children to throw rotten fruit at the capitalists in the stocks in the village square. However, today it blows since Azureus and the major Azureus plugins like AzSMRC and SafePeer range from flaky to explosive when run under GCJ.
After some fruitless Googling I came to the conclusion I should just download Azureus from Sourceforge and install it myself. So, I installed the sun-java6-jre package to get a real man’s Java implemenation, I grabbed the Azureus tarball and extracted it to /opt/azureus/, then fired it up. Then, to what did my wondering eyes appear, but meaningless error messages about a missing libswt-gtk or whatever.
You see, it turns out the latest Azureus ships with a version of SWT that depends upon GTK 3.3, but Feisty installs 3.2. I had to copy the contents of /usr/lib/java and /usr/lib/jni and /usr/lib/ecplise/plugins to /opt/azureus to get Azureus to start. Then it downloaded the latest SWT update (apparently this is more recent than what’s in the tarball, for reasons I don’t understand), and once it had this updated swt.jar, it was no longer dependent upon the other crap I copied in, so I was able to delete it.
I also had to make sure my non-privileged user owned the /opt/azureus folder and its contents, so updates could run successfully.
Now, Azureus is running fine. If only I could find a Linux alternative to PeerGuardian 2 that doesn’t suck (SafePeer was written by a 12 year old and shows no sign of ongoing maintenance, and MoBlock is a lame static solution with no provision to updating its blocklists).
Tags: azureus, feisty, java, Migrated from Drupal, tech diary, ubuntu
October 9th, 2007 at 3:59 am
Thank you
Update: I installed from sourceforge, and the tar includes the latest swt.jar, so it already works ootb no problem.
The latest Azureus also seems to include by default a PeerGuardian2 compatible IP blocker
October 9th, 2007 at 1:24 pm
There was indeed an updated Azureus release on 4-Oct (3.0.3.4), and it seems reasonable to assume that this release would have the latest SWT. ’bout damn time. Here’s hoping Ubuntu Gutsy will have a more reliable Azureus package.
October 20th, 2007 at 9:12 pm
Azureus and Gutsy
Sorry to disappoint you but Gutsy Final has a version 2.5 which is broken. Something to do with Java version.
October 22nd, 2007 at 6:08 pm
Dammit. I assume this bug is the issue you’re referring to. Perhaps the old-economy copyfascists have co-opted Canonical and compelled them to keep Azureus support shitty and limited, lest the proletariat get its collective hands on viable means of distribution.
Or maybe software is just hard.
Either way, WTF.
May 17th, 2008 at 12:42 pm
The azureus bug in ubuntu was really annoying. I remember it was present in Breezy. But …. it has been fixed in Hardy! So now the masses can just do sudo apt-get install azureus. Maybe you need to install the restricted packages for the java but i am not sure. Long live Mark Shutteword!
May 17th, 2008 at 4:48 pm
’bout damn time! To the package maintainer for Azureus: what the hell took you so long?