Making it easy to try DTrace4Linux

DTrace4Linux is an attempt (from UK developer Paul Fox, also known for his CRiSP editor) to bring the power of DTrace to Linux. It’s a kernel module (No kernel recompilation required! Yay!) and userland tools.

I did a bit of hacking around with Vagrant and Puppet and VirtualBox to make it dead easy to try.

Tweeted here.

Ubuntu mirror troubles

This has been happening all day every time I attempt to do apt-get dist-upgrade:

The following packages will be upgraded:
  libsmbclient samba samba-common smbclient smbfs
5 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.0MB of archives. After unpacking 4096B will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Err http://security.ubuntu.com feisty-security/main smbfs 3.0.24-2ubuntu1.3
  403 Forbidden
Err http://security.ubuntu.com feisty-security/main smbclient 3.0.24-2ubuntu1.3
  403 Forbidden
Err http://security.ubuntu.com feisty-security/main samba 3.0.24-2ubuntu1.3
  403 Forbidden
Err http://security.ubuntu.com feisty-security/main samba-common 3.0.24-2ubuntu1.3
  403 Forbidden
Err http://security.ubuntu.com feisty-security/main libsmbclient 3.0.24-2ubuntu1.3
  403 Forbidden
E: Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/s/samba/smbfs_3.0.24-2ubuntu1.3_i386.deb:
403 Forbidden

Possible fix for using apt through a broken HTTP proxy

Seen on a work email list. A possible solution to the problem where files downloaded through apt-get on Ubuntu at work (where we have a squid HTTP proxy) periodically get corrupted.

Put the following in apt.conf:

Acquire::http::Pipeline-Depth "0";

Quote from man apt.conf:

One setting is provided to control the pipeline depth in cases where the remote server is not RFC conforming or buggy (such as Squid 2.0.2) Acquire::http::Pipeline-Depth can be a value from 0 to 5 indicating how many outstanding requests APT should send. A value of zero MUST be specified if the remote host does not properly linger on TCP connections – otherwise data corruption will occur. Hosts which require this are in violation of RFC 2068.