Cant get RTL8125 Realtek driver working on version 20.04

I have installed Ubuntu 20.04 on a new PC and originally managed to get the RTL8125 NIC driver working by installing the Realtek driver. However after an update it has stopped working and I am unable to get it working again.

The output of sudo lshw -C network is:

*-network UNCLAIMED

   description: Ethernet controller
   product: RTL8125 2.5GbE Controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: [email protected]:06:00.0
   version: 05
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix vpd bus_master cap_list
   configuration: latency=0
   resources: ioport:f000(size=256) memory:fcd00000-fcd0ffff memory:fcd10000-fcd13fff

The output from lspci -knn | grep Eth -A3 is:

06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
    DeviceName: RTL8111E Giga LAN
    Subsystem: Gigabyte Technology Co., Ltd RTL8125 2.5GbE Controller [1458:e000]
    Kernel modules: r8169

I have downloaded the driver from the realtek website at

and followed the instructions in the README file.
However when I run the command sudo ./ I get the error:

Check old driver and unload it.
Build the module and install
make[3]: *** No rule to make target 'information'. Stop.
make[2]: *** [Makefile:340: __build_one_by_one] Error 2
make[1]: *** [Makefile:167: clean] Error 2
make: *** [Makefile:48: clean] Error 2

I am fairly new to Linux so I don’t understand what this error means, so any help would be much appreciated

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

I have now resolved the issue.

In the end I downloaded the “GBE Ethernet LINUX driver r8168 for kernel up to 5.6” driver from the Realtek website, instead of the 2.5GB driver and running the ./ command as root worked.

Solution 2

In my case the r8168 didn’t work with the Gigabyte B550 Aorus Elite motherboard. So what I did was:

I also downloaded the driver from the realtek website at but I had to connect my mobile phone via usb and share the internet connection with the desktop in order to download the 2.5G Ethernet LINUX driver r8125 for kernel up to 5.6

From a Terminal window run:

sudo apt install r8168-dkms (this package was needed in order to run the r8125-90004.01 diver script with no errors)

cd /home/username/Downloads

cd r8125-90004.01

sudo chmod +x

sudo ./

sudo reboot

Please keep in mind that, after a kernel update a re-install of the RTL8125 is nedeed. So it’s a good ideia to keep the folder r8125-90004.01 in Downloads.

Solution 3

I ran into the same problem you described above.

If you have a fresh install of Ubuntu, the build essentials ar not installed.
And because build essentials is an meta-package, you could not download it and put it manualy per usb to ubuntu. But you need this package to build network-kernel-driver, especially you want to install uefi-supported driver.

It is a mess, but it is possible to manage this.

I have selected all packages in the meta-package "build essential" put it in one folder together with the source-code of the network device.
Then first I install all packages in this selected folder with command dpkg -i *.deb. If dpkg can not resolve dependiencies, then verify wich package is not installed , because of wrong installation order, then install missed package with dpkg -i {package-name}.deb and then repeat "dpkg -i *.deb", until all dependiencies are resolved.

then run the ./ in the source-code.

All is fine, now.


One little hint: If you work with an Nvidia-Graphics-device 1080 Ti, do not use the Nouveau driver included in repository.
Use closed source nvidia drivers from NVIDIA to get all functionalities.


If you want more information which .deb-packages you need, go to and get kontakt information.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply