switch_root: command not found [How To Fix]

Problem

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

switch_root: command not found

Solutions to switch_root: command not found

How To Fix switch_root: command not found in Ubuntu / Debian / Kali Linux / Raspbian

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

sudo apt-get -y install util-linux

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

You can also use apt command to install util-linux.

sudo apt -y install util-linux

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

sudo aptitude install util-linux

How To Fix switch_root: command not found in Alpine

In Alpine Linux, we can install switch_root using the command below.

apk add util-linux

How To Fix switch_root: command not found in Arch Linux

In Arch Linux, to fix this error message, we can install switch_root using the command below.

pacman -S util-linux

How To Fix switch_root: command not found CentOS / Alma Linux / Oracle Linux / Red Hat Enterprise Linux (RHEL)

In CentOS or other RHEL based Linux distribution, we can install switch_root using the command below.

yum install util-linux

How To Fix switch_root: command not found in Fedora

In Fedora we can use dnf command to install switch_root using the command below.

dnf install util-linux

How To Fix switch_root: command not found in OS X

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

brew install util-linux

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.