trouble uploading on ubuntu 12.04

One more thing to note:

If you install arduino logging (from here Arduino Playground - Logging) , it defaults to setting the serial port to 38400 baud. Then the next time you open the serial monitor, this gets written into the preferences.txt file.

From then on until you finally figure this out after hours of googling and experimentation, you are stuck.