arch-chroot: command not found

arch-chroot command is used to create chroot jail which changes the root directory from the current one (in the virtual system booted from the ISO image) to the real one that is on your disk. Thus, the rest of the commands will consider your disk as the currently booted system and apply the changes. Note that the command prompt changes slightly to reflect the change:

# arch-chroot /mnt /bin/bash

In case you encounter the below error:

arch-chroot: command not found

you can install the package shown below as per your choice of distribution.

Distribution Command
Debian apt-get install arch-install-scripts
Ubuntu apt-get install arch-install-scripts
Alpine apk add arch-install-scripts
Arch Linux pacman -S arch-install-scripts
Kali Linux apt-get install arch-install-scripts
Fedora dnf install arch-install-scripts
Docker docker run cmd.cat/arch-chroot arch-chroot

The arch-install-scripts package is a small suite of scripts aimed at automating some menial tasks when installing Arch Linux. These scripts can also aid when debootstrapping a Debian-based system. This package contains genfstab which assists with generating a fstab and arch-chroot which assists with setting up bind mounts and disabling services via policy.d.

Related Post