Installing PHP 5.3 on Ubuntu 9.10 Karmic Koala

How to get PHP 5.3 on Karmic Koala from dotdeb.

In production, we use Ubuntu 9.10, because of the need of the newer kernel. Now we also need 5.3 PHP, because of Symfony, so I started searching. I've found a post on JMOZ blog1, about installing 5.3 PHP from dotdeb packages, but when I tried, I recieved some more errors over the one libicu38 mentioned in the post, so I decided to write them down.

The needed additional apt sources:

# for PHP 5.3
deb stable all
deb-src stable all

# for libicu38
deb jaunty-security main
deb-src jaunty-security main

# for libltdl3
deb hardy main
deb-src hardy main
deb hardy-updates main
deb-src hardy-updates main