map-packages: 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/share/diskimage-builder/elements/opensuse/bin/map-packages - from package: diskimage-builder
/usr/share/diskimage-builder/elements/redhat-common/bin/map-packages - from package: diskimage-builder
/usr/share/diskimage-builder/elements/rhel/bin/map-packages - from package: diskimage-builder

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

On Debian possible default full paths are:

/usr/share/diskimage-builder/elements/opensuse/bin/map-packages - from package: python-diskimage-builder
/usr/share/diskimage-builder/elements/redhat-common/bin/map-packages - from package: python-diskimage-builder
/usr/share/diskimage-builder/elements/rhel/bin/map-packages - from package: python-diskimage-builder

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