Monday, 8 July 2013

Updating Ubuntu's sources.list

Frustratingly, I keep on forgetting to:

sudo bash
cd /etc/apt
cp sources.list sources.list-`date +%Y%m%d`
sed -i 's#au.archive.ubuntu.com/ubuntu#mirror.internode.on.net/pub/ubuntu/ubuntu#g' sources.list

This really needs to be a post-install hook or something.

1 comment:

  1. What's more frustrating that with GeoIP, looking at how owns the P range and a few other tricks it could be completely automated....

    ReplyDelete