sort-dctrl: 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

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/sort-dctrl - from package: dctrl-tools

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