qemu-arm command not found

In this troubleshooting guide we learn how to fix qemu-arm command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

qemu-arm: command not found

or when using sudo you get the following error message

sudo: qemu-arm: command not found

Solutions to qemu-arm: command not found

How To Fix qemu-arm: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu qemu-arm is provided by qemu-user package.

qemu-user is:

QEMU is a fast processor emulator: currently the package supports ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4, SPARC and x86-64 emulation. By using dynamic translation it achieves reasonable speed while being easy to port on new host CPUs.

This package provides the user mode emulation binaries. In this mode QEMU can launch Linux processes compiled for one CPU on another CPU.

If qemu-user-binfmt package is also installed, it will register binary format handlers from this qemu-user package with the kernel so it will be possible to run foreign binaries directly. However, this might not be suitable for using inside foreign chroots, in which case it is possible to use qemu-user-static package instead of qemu-user-binmft, – qemu-user-static will register statically linked binfmt handlers instead.

To fix this problem, we can install more using the command below.

sudo apt-get -y install qemu-user

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install qemu-user.

sudo apt -y install qemu-user

Or if you have aptitude installed you can use the following command.

sudo aptitude install qemu-user

Summary

In this tutorial we learn how to fix qemu-arm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.