This morning 2 of my Ubuntu installs that are both 22.04.3 LTS
running HWE upgraded to Kernel 6.5.0-14-generic
. After rebooting both systems the network cards that are RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
did not come up. Booting to the older 6.2.0-39-generic Kernel the network card works just fine. Upon trying to reinstall the r8168-dkms
driver which installs the driver version 8.049.02
fails. And running sudo lshw -C network
is showing the card as UNCLAIMED
.
P.S. I will not use the r8169
driver for my r8168
chipset as it will work OK in the beginning but after a little bit will give unpredictable behavior, some to the point of needing a hard reboot of my system to bring the interface back up.
NOTE: I had noticed that if I had booted into Windows 10 that when I booted back to Ubuntu without a hard power cycle that the NIC would not work correctly. This was actually due to the driver version in Windows creating this problem for some reason. To fix it I had booted back into Windows and downloaded and installed the
10.69
driver from Realtek themselves. Now rebooting from Windows back into Ubuntu there is no issues.Driver Installation:
The
8.049.02
driver appears to be incompatible with the6.5.0-14-generic
Kernel and DKMS cannot install the driver.Boot back to a working Kernel and download the Realtek
8.052.01
driver from here.After downloading the driver, go ahead and extract the files.
Enter the new directory that was created.
Create a new Kernel source directory for the driver.
And copy all the files to the new directory.
Create a new
dkms.conf
file for the driver.and now add the following content to the file.
Save the file and run the next lines to build and install the driver.
Now when you check the
dkms status
you should see the new driver installed into the kernel.Reboot the system and boot into the newest Kernel and the RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller should come up fine.
Check if r8169, which is builtin in kernel, works well now with your controller. Purging
r8168-dkms
worked for me