2

Yesterday, I (finally) upgrade my Ubuntu 18.04 to 20.04. The upgrade progressed smoothly and I was prompted to reboot. After the reboot, I can no longer connect to the Internet via Ethernet cable. WIFI connection seems OK.

I created a USB stick with Ubuntu 20.04 (and subsequently 20.10) and find that I have the same problem even running from the two USB stick trials.

My PC is a Dell Inspiron 3268. It is partition into Windows 10 and Ubuntu. The Ethernet connection has no problem on the Windows side. The network connection was running smoothly in Ubuntu 18.04 before the upgrade.

Here is the result running: sudo lshw -c network

 *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 15
       serial: 50:9a:4c:3a:1c:6b
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII
       resources: irq:19 ioport:e000(size=256) memory:df104000-df104fff memory:df100000-df103fff
  *-network
       description: Wireless interface
       product: QCA9565 / AR9565 Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 01
       serial: b0:52:16:59:ac:93
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=5.4.0-66-generic firmware=N/A ip=192.168.43.91 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:df000000-df07ffff memory:df080000-df08ffff

I really need my Ethernet connection and cannot rely on WiFi. I would hate it if I eventually need to switch back to Windows as my primary OS.

Thanks ahead.

Dave T
  • 41

2 Answers2

2

Shortening up this answer:

First, install the dkms driver for the r8168 chipset:

sudo apt install dkms r8168-dkms

Now, unload the current r8169 driver:

sudo rmmod r8169

Blacklist the r8169 driver to keep it from loading in the future:

echo "blacklist r8169" | sudo tee -a /etc/modprobe.d/blacklist.conf

Then load the r8168 driver:

sudo modprobe r8168

Then you can check the status of the driver by running both sudo lshw -C network and dkms status.

Example:

terrance@terrance-ubuntu:~$ sudo lshw -C network
  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: eth0
       version: 0c
       serial: 40:8d:5c:4f:12:03
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.048.00 duplex=full ip=10.0.0.100 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:27 ioport:ce00(size=256) memory:fdeff000-fdefffff memory:fddfc000-fddfffff

terrance@terrance-ubuntu:~$ dkms status nvidia, 460.39, 5.4.0-66-generic, x86_64: installed nvidia, 460.39, 5.8.0-43-generic, x86_64: installed nvidia, 460.39, 5.8.0-44-generic, x86_64: installed r8168, 8.048.00, 5.4.0-66-generic, x86_64: installed r8168, 8.048.00, 5.8.0-43-generic, x86_64: installed r8168, 8.048.00, 5.8.0-44-generic, x86_64: installed

Hope this helps!

Terrance
  • 43,712
0

I have this issue on my Gigabyte DS3H.

Every time I boot in windows and reboot to linux 20.04, the connection works.

And when I reboot (without pass though windows), the connection is lost and the driver cannot connect again.

I solve the issue by installing new version of the Kernel. I was using the ubuntu 20.04 (kernel 5.11), but in the middle of the process I updated the distro to 21.04.

To update the ubuntu distro from lts to normal, you can follow this link: https://www.howtogeek.com/351360/how-to-upgrade-to-the-latest-version-of-ubuntu/

The commands below installs the mainline kernel installer for ubuntu:

sudo add-apt-repository ppa:cappelikan/ppa
sudo apt-get update
sudo apt-get install mainline

Just open the mainline from GUI apps.

Now you can see that there are a lot of new kernel compilations.

I suggest you to install the 5.14.2, because this version depends on glibc6 2.33 (still compatible with the ubuntu stable 21.04).

All other versions 5.14.3 and greater needs glibc6 2.34, that is not installed in the ubuntu stable 21.04 yet (2021/set).

This solved my problem with the realtek r8169 driver connection issue.

And if you have the secure boot enabled, you might need this also: https://gloveboxes.github.io/Ubuntu-for-Azure-Developers/docs/signing-kernel-for-secure-boot.html