Let me make your life easier in using DB2 on Debian based Ubuntu.
You have two options.
Just download my VMware Image from VMware Marketplace
1) Download my Dubuntu appliance which has DB2 setup in a Ubuntu Linux environment with support for Apache,PHP and DB2. It even comes bundled with the Technology Explorer.