slock: 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/slock - from package: suckless-tools

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