$ sudo apt-get remove librxtx-java
$ sudo updatedb
$ locate RXTXcomm.jar
/home/username/bin/arduino-1.0.1/lib/RXTXcomm.jar
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/RXTXcomm.jar

The first one is accounted for - It's the downloaded Arduino IDE. The
second is of unknown origin:

dpkg --search /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/RXTXcomm.jar
dpkg-query: no path found matching pattern 
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/RXTXcomm.jar.

Googling this path finds *no* results. Is there any other way it could
be related to an installed package? I usually only install software with
apt-get. There's another interesting file in the same directory:

$ cat /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/javax.comm.rxtx.properties
javax.comm.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1:/dev/ttyUSB0:/dev/ttyUSB1

Looks like it accounts for why Arduino IDE doesn't list /dev/ttyACM0.
This file is also unknown to dpkg.

Moving these away and reinstalling Arduino strangely does not work:
$ sudo mv /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/RXTXcomm.jar{,.bak}
$ sudo mv 
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/javax.comm.rxtx.properties{,.bak}
$ sudo apt-get purge arduino
$ sudo apt-get install arduino
$ sudo updatedb
$ locate RXTXcomm.jar
/home/username/bin/arduino-1.0.1/lib/RXTXcomm.jar
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/RXTXcomm.jar.bak
/usr/share/arduino/lib/RXTXcomm.jar
/usr/share/java/RXTXcomm.jar
$ arduino
Stable Library
=========================================
Native lib Version = RXTX-2.2pre2
Java lib Version   = RXTX-2.1-7
WARNING:  RXTX Version mismatch
        Jar version = RXTX-2.1-7
        native lib Version = RXTX-2.2pre2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1054988

Title:
  Arduino not detected on USB port

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/arduino/+bug/1054988/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to