Debian stretch failed to load firmware rtl_nic/rtl8168g-3.fw (-2)

I’m getting this error in Debian stretch during the boot process

[ 26.390311] r8169 0000:03:00.0: firmware: failed to load rtl_nic/rtl8168g-3.fw (-2)

After that I continues the boot and works fine. Is there any firmware or driver missing?

Asked By: lotfio


After hours of searching on different resources i ended up solving the problem which was caused by a missing of firmware-realtek the realtek driver .

The missing of this firmware can throw different errors prefixed by rtl_nic/
to solve this simply add the official repository Debian firmware-realtek
to your /etc/apt/sources.list by running this command

$ sudo gedit /etc/apt/sources.list

and make sure you are selecting the right Distro

your source.list should look like this:

#realtek firmware
deb stretch main non-free
deb-src stretch main non-free

After that install realtek firmware

sudo apt-get update
sudo apt-get install firmware-realtek
Answered By: lotfio
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.