Regarding location of the file; if you enter Code: [Select]vi $(which arduino) to a terminal (or gedit, nano, or whatever instead of vi) it will find the one you actually use!
vi $(which arduino)
I do not recommend using the Ubuntu package manager to install the Arduino IDE. It never has the current IDE version, and I have found their versions to be a bit buggy. I download my versions from the Arduino website.