resize-part-image: 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 CentOS possible default full paths are:

/usr/bin/resize-part-image - from package: cloud-utils

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/resize-part-image - from package: cloud-utils

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