When you install the Arduino IDE using apt-get, you get an extremely outdated version of the Arduino IDE that has been modified in unspecified ways by a 3rd party. Please always download the official Arduino IDE from the Downloads page of this repository:
For your Raspberry Pi, you'll want to use the "Linux ARM 32 bits" download link. You'll find that it has all the same features as you get when running the Arduino IDE on any other OS.
If I click the file, "Arduino" , and select "execute" it runs. But the old version usually supersedes when I open .ino files. How do I clean this up and make it right?