arch-chroot command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
arch-chroot: command not found
or when using sudo you get the following error message
sudo: arch-chroot: command not found
Solutions to arch-chroot: command not found
How To Fix arch-chroot: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu arch-chroot is provided by arch-install-scripts package.
arch-install-scripts is:
arch-install-scripts provides a small suite of scripts originally meant to automate some menial tasks during the installation of an Arch system. This package provides the scripts that can be useful for debootstrapping a Debian-based system.
This package contains:
- genfstab: Automatically generate an fstab file
- arch-chroot: Set up bind mounts and chroot into the target system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install arch-install-scripts
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install arch-install-scripts.
sudo apt -y install arch-install-scripts
Or if you have aptitude installed you can use the following command.
sudo aptitude install arch-install-scripts
Summary
In this tutorial we learn how to fix arch-chroot command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.