pxe-kexec command not found

In this troubleshooting guide we learn how to fix pxe-kexec command not found error message

Introduction

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

pxe-kexec: command not found

or when using sudo you get the following error message

sudo: pxe-kexec: command not found

Solutions to pxe-kexec: command not found

How To Fix pxe-kexec: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pxe-kexec is provided by pxe-kexec package.

pxe-kexec is:

Tool that fetches PXE configuration file (SysLinux’ PXELinux format), prompts the user for a boot entry (label), (supports interactive editing of the kernel parameters), downloads the selected kernel and initrd over the network using TFTP, FTP or HTTP and finally reboots into the kernel using kexec.

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

sudo apt-get -y install pxe-kexec

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

You can also use apt command to install pxe-kexec.

sudo apt -y install pxe-kexec

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

sudo aptitude install pxe-kexec

Summary

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