how to upgrade raspbian arduino IDE 1.0.1 to 1.6.1?

I am a newbie, and only recently installed Arduino on my raspberry pi using apt-get. This has been working well but a new library I have installed needs a more recent IDE. So I downloaded v1.6.1 and ungz'd it, then untarred it into a new folder structure. But 1.0.1 still is installed and of course continues to launch from the Raspberry Programming menu.

How do I complete the update, such that clicking Arduino in the Programming menu will launch IDE v1.6.1? And what are the steps to remove the 'old' version?

btw, I also tried the apt-get route using Synaptic Package Manager but there is no upgrade from 1.0.1 available there, even after sudo apt-get updates etc.

Thanks in advance for the help.

############

I took a run at getting this done by going into my new IDE folder and running the arduino executable, with the following results. What I am concluding is that the ARM is not 32 bit so I cannot upgrade. Is this the case?:

pi@raspberrypi ~/ArduinoIDE/arduino-1.6.1 $ ./arduino

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-entry-select-on-focus after class was initialised

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-entry-password-hint-timeout after class was initialised

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-can-change-accels after class was initialised

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-menu-popup-delay after class was initialised

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-menu-popdown-delay after class was initialised

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-menu-bar-popup-delay after class was initialised

(java:9261): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-label-select-on-focus after class was initialised
java.lang.UnsatisfiedLinkError: /home/pi/ArduinoIDE/arduino-1.6.1/lib/libastylej.so: /home/pi/ArduinoIDE/arduino-1.6.1/lib/libastylej.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1083)
at cc.arduino.packages.formatter.AStyleInterface.(AStyleInterface.java:13)
at cc.arduino.packages.formatter.AStyle.(AStyle.java:23)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:433)
at processing.app.Editor.createToolMenuItem(Editor.java:901)
at processing.app.Editor.addInternalTools(Editor.java:924)
at processing.app.Editor.buildToolsMenu(Editor.java:690)
at processing.app.Editor.buildMenuBar(Editor.java:495)
at processing.app.Editor.(Editor.java:222)
at processing.app.Base.handleOpen(Base.java:732)
at processing.app.Base.handleOpen(Base.java:697)
at processing.app.Base.handleNew(Base.java:591)
at processing.app.Base.(Base.java:293)
at processing.app.Base.main(Base.java:162)
/home/pi/ArduinoIDE/arduino-1.6.1/lib/libastylej.so: /home/pi/ArduinoIDE/arduino-1.6.1/lib/libastylej.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
Cannot load native library /home/pi/ArduinoIDE/arduino-1.6.1/lib/libastylej.so
The program has terminated!

Joel

===========

I saw that 1.6.x is not for UNO so I downloaded 1.0.5 and installed that. But I get the same result as above relating to ARM processors on my Raspberry Pi 2. I saw another post that uses jessie rather than wheezy but that's too big a hill to climb. Not sure where to go with this from here. Any ideas will be appreciated.

#saw this at Arduino IDE 1.0.5 bug under Raspbian · Issue #68 · FastLED/FastLED · GitHub
#ran through and did the steps and 1.0.5 was installed, and successfully compiled and uploaded
#Blink sample program, changing the blink rates to test further...
#so the bug the github user reported may relate to issues with adding libraries
#same method may work for other IDE versions, but since v1.0.5 was the minimum I needed
#I did not press my luck and just went with it:

#to install Arduino ide (if you have not previously done so do the first step below, otherwise skip to 2nd step as starting point)+ update (as user pi!)
sudo apt-get install arduino
cd Desktop
mkdir Downloads
cd Downloads
wget http://arduino.googlecode.com/files/arduino-1.0.5-linux32.tgz
tar zxvf arduino-1.0.5-linux32.tgz
cd arduino-1.0.5
rm -rf hardware/tools
sudo cp -ru lib /usr/share/arduino
sudo cp -ru libraries /usr/share/arduino
sudo cp -ru tools /usr/share/arduino
sudo cp -ru hardware /usr/share/arduino
sudo cp -ru examples /usr/share/doc/arduino-core
sudo cp -ru reference /usr/share/doc/arduino-core