Basic Ubuntu / Arduino question

Hi I am a total novice with hardware hacking (bit more experience on the software side of things :slight_smile: ) and just got my first Arduino Uno.

Here are my stats:

OS: Ubuntu 11.04 (2.6.38.3+)

Arduino: Uno + USB Power

Pkgs installed via aptitude: libjna-java binutils-avr gcc-avr avr-libc avrdude

.deb files installed: arduino_0022+dfsg-1~maverick1_all.deb arduino-core_0022+dfsg-1~maverick1_all.deb librxtx-java_2.2pre2-3~maverick1_i386.deb

Anyway I just created the most basic LED sketch which verifies but when I try and Upload to the Arduino here is what I get:

Binary sketch size: 990 bytes (of a 32256 byte maximum)
ioctl("TIOCMGET"): Invalid argument
ioctl("TIOCMGET"): Invalid argument
avrdude: stk500_recv(): programmer is not responding
ioctl("TIOCMGET"): Invalid argument

I am confident I have the right port (only serial USB device attached, only one showing the IDE) andit seems like it trying to upload because the default LED blink changes to a flicker before going back to the same blink. I know it isn’t from my code because the error and I am unable to vary the rates on the delays in my loop.

Any thoughts or anyone have experience with these errors? I have googled a bit (RTFM!) and found all kinds of things related to these message (including bad arduino!) I could try in a windows environment but would prefer the ability to work from Linux. Thoughts, suggestions ideas or recommended reading welcome. I have Banzi’s Getting started book and a couple of mims electronics guides.

Thanks for your help!!

TLDR; gettting ioctl and an avrdude errors when uploading simple verifiable sketch

Hi! OP here. I actually resolved this issue after a bit more google searching by installing openjdk-6 a la

$ sudo apt-get install openjdk-6-jre

I had already had Sun java installed which I didn’t remove and it worked fine, although I noticed it added a second port available in the Arduino IDE which is the one that ultimately worked.

Sorry for such a newbie post.