GD Library for PHP
http://drupal.org/node/134331#comment-1120427
Here is the steps for Ubuntu Server 8.04.1 and PHP5. It will install a GD pre-compiled working version. It is a complete bundled (forked) GD libraries:
1. If not already done removing your current GD package and its configurations.
sudo apt-get --purge remove
2. Adding 2 lines to your file /etc/apt/sources.lst /etc/apt/sources.list
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
3. Updating your current apt-get list
apt-get update
4. Installing working GD package.
apt-get install php5-gd
It will complain about non-authenticated sources, just ignore, it will also update some additional php libs.
Select keep_current modified php.ini when prompted
5. Restarting Apache
/etc/init.d/apache2 restart
*******************************************************************
PECL uploadprogresslibrary
Install the PHP developer package for the version of PHP you're using. For example, using Ubuntu run:
$ sudo apt-get install php5-dev
Install the PECL uploadprogress library:
$ sudo pecl install uploadprogress
Open php.ini (check the path to php.ini using a phpinfo.php file if needed)
$ sudo gedit /etc/php5/apache2/php.ini
Add "extension=uploadprogress.so" to php.ini
Restart apache:
$ sudo /etc/init.d/apache2 stop
$ sudo /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 restart
**************************************************************************
Ubuntu 8.04 (Hardy Heron) How-To

Comments
Thanks, PECL uploadprogress
Thanks, PECL uploadprogress install worked well for me in Lucid, too.