Fixing pbuilder dependency 404 errors

If you're building packages with pbuilder sometimes you might hit something like the following errors which cause the build to fail because the dependencies can't be found. Err http://archive.ubuntu.com/ubuntu/ precise-updates/main devscripts i386 2.11.6ubuntu1.2 404 Not Found [IP: 91.189.92.188 80]…

Ubuntu: java.net.SocketException in ec2-api-tools

Having installed ec2-api-tools under my lucid dev environment I was trying to shut ec2 instances down with ec2stop [instance_id] and I was getting the following exception: $ ec2stop i-XXXXXXXX Unexpected error: java.net.SocketException: Invalid argument or cannot assign requested address at java.net.PlainSocketImpl.socketConnect(Native Method) at java.…

Linux: Fix for apt-get update - Waiting for Headers

If you're a Google chrome user on Ubuntu you may have noticed apt-get update seems to wait around for two minutes sitting at 99%. The culprit is the google apt repo having issues with http/1.1 pipelining. Fortunately there's a bug for it on Launchpad with a workaround that…

Ubuntu: Changing the default java binary

Since upgrading to Karmic I've had a weird issue with Charles Proxy in that the windows for settings like rewrites seemed to get completely screwed up making it very difficult to see the boxes for entering information. Here's a screenshot of what it looks like broken. Karl von Randow the…