This is a step by step beginner’s guide shows how to install the most recent Arduino IDE (2.3.4 so far) in Ubuntu, Debian, and Linux Mint.
Arduino IDE is free open-source AVR development board IDE from Arduino CC. It’s available in Debian and Ubuntu repositories, but stuck at version 1.8.19, probably because the 2.x versions require internet connection.
If you want to get the 2.x release series, then there are 3 choices: Flatpak, AppImage, and portable Linux Zip archive that work in most Linux distributions.