As of late the Apple iPhones and iPods have worked flawlessly in Ubuntu out-of-the-box. However, if you’ve upgraded your firmware to 4.2.x and tried it in Ubuntu 11, you’ll get a nasty message about being unable to mount.
To fix this, add the following repo to your sources so we can install a few updates:
sudo add-apt-repository ppa:pmcenery/ppa sudo apt-get update
sudo apt-get install ifuse libimobiledevice2 libimobiledevice-dev python-imobiledevice
Plug your iPhone in, and you should be gtg!
Quick Update: libimobiledevice1 has been replaced with libimobiledevice2. Thanks to crowdtube.tv for the heads-up.