update-binfmts command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
update-binfmts: command not found
or when using sudo you get the following error message
sudo: update-binfmts: command not found
Solutions to update-binfmts: command not found
How To Fix update-binfmts: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu update-binfmts is provided by binfmt-support package.
binfmt-support is:
The binfmt_misc kernel module, contained in versions 2.1.43 and later of the Linux kernel, allows system administrators to register interpreters for various binary formats based on a magic number or their file extension, and cause the appropriate interpreter to be invoked whenever a matching file is executed. Think of it as a more flexible version of the #! executable interpreter mechanism.
This package provides an ‘update-binfmts’ script with which package maintainers can register interpreters to be used with this module without having to worry about writing their own init.d scripts, and which sysadmins can use for a slightly higher-level interface to this module.
To fix this problem, we can install more using the command below.
sudo apt-get -y install binfmt-support
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install binfmt-support.
sudo apt -y install binfmt-support
Or if you have aptitude installed you can use the following command.
sudo aptitude install binfmt-support
Summary
In this tutorial we learn how to fix update-binfmts command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.