update-microcode-initrd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
update-microcode-initrd: command not found
or when using sudo you get the following error message
sudo: update-microcode-initrd: command not found
Solutions to update-microcode-initrd: command not found
How To Fix update-microcode-initrd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu update-microcode-initrd is provided by microcode-initrd package.
microcode-initrd is:
intel and amd64 microcode are generated together into an early, microcode-only, initrd. This initrd can then be loaded by grub on boot, for otherwise an initrd-less boot.
This package dynamically creates /boot/microcode.cpio whenever any microcode is updated.
To fix this problem, we can install more using the command below.
sudo apt-get -y install microcode-initrd
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install microcode-initrd.
sudo apt -y install microcode-initrd
Or if you have aptitude installed you can use the following command.
sudo aptitude install microcode-initrd
Summary
In this tutorial we learn how to fix update-microcode-initrd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.