lastrelease: 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/bin/lastrelease - from package: shapetools

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