This script cannot be run on Debian 12+ or Ubuntu 24.04+ because some libs are no longer available, so I would suggest updating it.
Reading state information... Done
E: Unable to locate package lib32ncurses5
E: Unable to locate package lib32tinfo5
make: *** [Makefile:2: all] Error 100