Using ESP-Prog debugger with PIO

The debugger requirest hat some libraries are preinstalled on the system. You’re missing the ncurses lib.

Have you tried doing a sudo apt install libncurses5?

Per this it might also need a sudo apt-get install libncurses5-dev libncursesw5-dev.