flashcp command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
flashcp: command not found
or when using sudo you get the following error message
sudo: flashcp: command not found
Solutions to flashcp: command not found
How To Fix flashcp: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu flashcp is provided by mtd-utils package.
mtd-utils is:
Utilities for manipulating memory technology devices, such as flash memory, Disk-On-Chip, or ROM. Includes the following tools: docfdisk, doc_loadbios, flashcp, flash_erase, flash_eraseall, flash_lock, flash_otp_dump, flash_otp_info, flash_otp_lock, flash_otp_write, flash_unlock, ftl_check, ftl_format, jffs2dump, jffs2reader, lsmtd, mkfs.jffs2, mkfs.ubifs, mtd_debug, mtdinfo, mtdpart, nanddump, nandtest, nandwrite, nftldump, nftl_format, recv_image, rfddump, rfdformat, serve_image, sumtool, ubiattach, ubiblock, ubicrc32, ubidetach, ubiformat, ubihealthd, ubimkvol, ubinfo, ubinize, ubirename, ubirmvol, ubirsvol, ubiupdatevol.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mtd-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mtd-utils.
sudo apt -y install mtd-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install mtd-utils
Summary
In this tutorial we learn how to fix flashcp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.