The microcode packages are basically patches to the CPU, fixing problems that have been detected since the CPU was manufactured. You only need to install the package related to the brand of CPU in the system (i.e. installing amd64-microcode on a system with an Intel processor makes no sense. In any case it can’t hurt to install the appropriate microcode package, it may help to fix bugs that you might or might not encounter. See e.g. the Intel ucode page as per don_crissti’s comment; AMD doesn’t give detailed info AFAIK.

They are in non-free as there are no freely available sources for the microcode; the packages are built on the binary blobs provided by Intel and AMD. As Debian is committed to providing a totally open and free operating system, these microcode updates don’t really belong in Debian but they are provided as a service to Debian users. Those users who do not want to run any risk of running into licensing problems because of software which is not free (as in terms and conditions of use) can simply not use the non-free archive and so be sure to use only unrestricted software.

安裝

Intel

1
# apt install intel-microcode

AMD

1
# apt install amd64-microcode