lists.o: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/lib/x86_64-linux-gnu/gap/bin/lists.o - from package: gap-dev

You may install the required package with command apt-get install {package}
Error in other languages:
lists.o: bevel nie gevind nie
lists.o: comandă negăsită
lists.o: comando não encontrado
lists.o: commande introuvable
lists.o: command not found
lists.o: käsku ei ole
lists.o: không tìm thấy lệnh
lists.o: komanda nerasta
lists.o: Kommando nicht gefunden.
lists.o: kommandot finns inte
lists.o: komut yok
lists.o: nie znaleziono polecenia
lists.o: níor aimsíodh an t-ordú
lists.o: no se encontró la orden
lists.o: no s'ha trobat l'ordre
lists.o: opdracht niet gevonden
lists.o: parancs nem található
lists.o: perintah tidak ditemukan
lists.o: príkaz nenájdený
lists.o: příkaz nenalezen
lists.o: команда не найдена
lists.o: командата не е открита
lists.o: 命令找不到
lists.o: コマンドが見つかりません