Switched to Ubuntu - Avatar Error

I get this error whenever I try to upload an avatar:

"The image could not be processed by the server. Please try another or contact the site owne"

I just recently switched to a linode running ubuntu. Any ideas on how to fix?
I tried this:

However Ubuntu (and Debian) comes with package called php5-gd
Just type following command to install this module:
# apt-get install php5-gd

Still doesn't work.

Adam Howard

Well-known member
Ah, Ubuntu / Debian ..... This I can help you with.....

apt-get install aptitude

aptitude is like an advance version of apt-get. It will in advance inform you of needed resources, packages, and possible conflicts.

aptitude update
aptitude full-upgrade (will upgrade you to Ubuntu 12.04 current)

If no errors and it did update, reboot (type reboot).

After do this....

aptitude install php5-curl php5-gd php5-intl php-pear php5-imagick

(This should cover every imagine format you come over)

/etc/init.d/apache2 restart