apt-p2p: 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/sbin/apt-p2p - from package: apt-p2p

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