qemu-system-s390x command not found

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

Introduction

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

qemu-system-s390x: command not found

or when using sudo you get the following error message

sudo: qemu-system-s390x: command not found

Solutions to qemu-system-s390x: command not found

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

In Ubuntu qemu-system-s390x is provided by qemu-system-s390x package.

qemu-system-s390x is:

QEMU is a fast processor emulator: currently the package supports s390x emulation. By using dynamic translation it achieves reasonable speed while being easy to port on new host CPUs.

This package provides the full system emulation binaries to emulate the following s390x hardware: s390x.

In system emulation mode QEMU emulates a full system, including a processor and various peripherals. It enables easier testing and debugging of system code. It can also be used to provide virtual hosting of several virtual machines on a single server.

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

sudo apt-get -y install qemu-system-s390x

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

You can also use apt command to install qemu-system-s390x.

sudo apt -y install qemu-system-s390x

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

sudo aptitude install qemu-system-s390x

Summary

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