What arduino IDE are you using ( 1.0.5 from ubuntu, 1.0.6 user isntalled? ) With 1.0.5 from ubuntu I had to “upload using programmer” since it never worked right with the basic upload command. I’ll presume you have installed the udev rules.
I have the upload working on Windows 7. Stupid error on my part.
As for Ubuntu 12.04 I have both 1.0.5 and 1.0.6 installed. The default is 1.0 which I did not bother installing.
It used to work before which is what makes this so frustrating, but now the error "Error opening serial port ‘/dev/ttyACM0’ " keeps happening. I don’t get a choice of choosing a different port.