I've spent a couple hours on this, learning all the time. The error message is thus
An error occurred while uploading the sketch /opt/arduino/hardware/tools/avr/bin/avrdude: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
I've gone through several suggestions mainly dealing with linking the file name (soft link). Linking to libtinfo.so.5.9 doesn't work. Linking to libncursesw.5.9 doesn't work. I tried installing ncurses5-compat-libs but it does not exist in my repos. ncurses-compat-libs is installed. I don't know what to try next.
Help would be greatly appreciated.