Ubuntu – Cant get RTL8125 Realtek driver working on version 20.04

driversnetworkingrealtek

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: pci@0000: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 https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

and followed the instructions in the README file.
However when I run the command sudo ./autorun.sh 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

Best Answer

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 https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software 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 autorun.sh

sudo ./autorun.sh

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.

Related Question