• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

debootstrap: command not found

by Deepika

debootstrap is a command line tool for creating a minimal Debian-based system. It is used to install a basic Debian system on a target device, without requiring the availability of Debian packages or a network connection. The debootstrap script downloads and installs the necessary packages from a Debian archive, and configures the target system to match a specified release of Debian.

If you encounter the below error while running the command debootstrap:

debootstrap: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install debootstrap
Ubuntu apt-get install debootstrap
Alpine apk add debootstrap
Arch Linux pacman -S debootstrap
Kali Linux apt-get install debootstrap
Fedora dnf install debootstrap
Raspbian apt-get install debootstrap

debootstrap Command Examples

1. Create a Debian stable release system inside the `debian-root` directory:

# debootstrap stable path/to/debian-root/ http://deb.debian.org/debian

2. Create a minimal system including only required packages:

# debootstrap --variant=minbase stable path/to/debian-root/

3. Create an Ubuntu 20.04 system inside the `focal-root` directory with a local mirror:

# debootstrap focal path/to/focal-root/ file:///path/to/mirror/

4. Switch to a bootstrapped system:

# chroot path/to/root

5. List available releases:

# ls /usr/share/debootstrap/scripts/

Filed Under: Linux

Some more articles you might also be interested in …

  1. lxi Command Examples in Linux
  2. btrbk Command Examples in Linux
  3. MySQL Server Error – “Can’t Create A New Thread (errno 11)”
  4. findfs Command Examples in Linux
  5. How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  6. What is SUID, SGID and Sticky bit ?
  7. autoreconf: command not found
  8. CentOS / RHEL 7 : How to remove rescue image using grubby
  9. How to Delete Duplicate Rules in Routing Policy Database in CentOS/RHEL
  10. fprintd-verify: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright