New to ESP32 chips. But IDE Refuses to Compile! (error 255)

Due to a change GitHub made to the infrastructure we use to produce the Arduino IDE releases, 2.3.4 is the last version that has compatibility with Ubuntu 18.04:

https://forum.arduino.cc/t/arduino-ide-2-3-4-is-now-available/1329167#p-7972984-deprecation-notice-upcoming-cessation-of-support-for-linux-distros-using-glibc-228-1

Ubuntu 18.04 is quite outdated.

If for some reason you won't or can't update your operating system, you can download Arduino IDE 2.3.4 from the links under the "Assets" section of the 2.3.4 release page on the Arduino IDE GitHub repository: