Hi I am new so am not sure if I should post here or ask as a new topic but here goes. I am also not particularly good with Linux.
I have this issue as well and have been able to reinstall in the past when the driver stops working but this time I can't.
I have an Aorus B550 motherboard running Ubuntu 20.04. The ethernet NIC is not listed when I run the command ifconfig. I have connected via usb tethered hotspot and downloaded the driver off of the Realtek website. The version I have downloaded is R8125-9.004.01 but am not sure what version I have installed previously and am unsure how to find out.
When I try to run the "sudo ./autorun.sh" command as stated in the READ ME file for the driver it gives me the error:
sudo ./autorun.sh
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 did try the "sudo modprobe -rvf r8125" command but got the error:
modprobe: FATAL: Module r8125 not found.
I cannot work out how to resolve this and any help would be very much appreciated.
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 ./autorun.sh command as root worked.