Issues compiling under Raspbian [solved]

Hi,
For my current project I need the possibility to compile and upload sketches to an Arduino Uno via console on Raspbian. I have tried the following things to get it working:

  1. Installing Arduino software via apt-get. In that setup the software worked fine with its GUI, but has no command-line interface.
  2. I tried to install ino to get that fixed but did not get it to work. It only threw Java errors. I suspect this caused by the project being dead and not compatible anymore with current software.
  3. I tried amake GitHub - pavelmc/amake: A very simple Arduino command line interface for linux, which looked better.
  4. It did not find my Arduino installation. Therefore I reinstalled Arduino the way suggested on the amake’s github page (https://www.arduino.cc/en/Guide/Linux)
    Now I can use the serial console of the Arduino software both via GUI and over amake. Sadly I cannot compile sketches or upload precompiled sketches to my board; neither via GUI nor via amake. In both cases it throws:
processing.app.debug.RunnerException
 at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:317)
 at cc.arduino.Compiler.loadPreferences(Compiler.java:216)
 at cc.arduino.Compiler.build(Compiler.java:175)
 at processing.app.SketchController.build(SketchController.java:664)
 at processing.app.Editor$BuildHandler.run(Editor.java:1647)
 at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Cannot run program "/home/pi/ArduinoInstall/arduino-1.8.9/arduino-builder": error=2, No such file or directory
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
 at java.lang.Runtime.exec(Runtime.java:620)
 at java.lang.Runtime.exec(Runtime.java:485)
 at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
 at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:297)
 ... 5 more
Caused by: java.io.IOException: error=2, No such file or directory
 at java.lang.UNIXProcess.forkAndExec(Native Method)
 at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
 at java.lang.ProcessImpl.start(ProcessImpl.java:134)
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
 ... 9 more

I would be very happy if you can give me a hint how to fix this.
All the best,
Henrik

Installing Arduino software via apt-get. In that setup the software worked fine with its GUI, but has no command-line interface.

If you are saying that you can compile and upload code to the Arduino using the IDE then have you tried enabling verbose output in Preferences to see what the GUI actually does when compiling and uploading code to the board ?

There are many posts on the interwebs that describe ways of doing this, a google search brings a plethora of topics on how to achieve this. For me, it is overly complex as you are finding.

What is confusing with your ask is why do you have this requirement? I have to make the assumption that you are accessing this box from some type of remove software. I will even go so far as to assume it is ssh. If so, I see no reason you can not run the IDE over ssh and use the tools provided to you?

Thank you very much for your answers.
@UKHeliBob: I just googled how to compile and upload via command line and only found that there is no such feature without external software (e.g. ino and amake). Doing it manually if there is no more convenient way would indeed be an option that I could take. However I am still wondering why I cannot get a working IDE using the official installation script. So I hope that I can get that to work and then have a convenient way of doing it with amake.
@Romonaga: My requirement arises from the need to remotely update software on the Arduino via SSH as you have guessed, since I would like to avoid using the GUI and VNC since this happened to be a rather unstable solution and has security issues.
All the best,
Henrik

EDIT: In the raspberrypi.org forum I was told to try to use GitHub - arduino/arduino-cli: Arduino command line tool.
That works in my setup. So I considere my problem to be solved