sonic: 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/sonic - from package: sonic

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