trouble uploading on ubuntu 12.04

After a lot of faffing around, I have found a solution that works for me (thanks to an append I read on a different forum). I had exactly the same symptoms as the original reported problem....the answer was to edit the preferences.txt file in .arduino directory...and set the debug rate to 9600. Mine was previously set to 14400.