After a few hours of troubleshooting I was finally able to dual boot the latest version of Kubuntu (21.04) alongside Windows. Completely fresh install, nothing changed, tampered with, etc. However, there's no internet. It tries connecting for a while, but then fails with the error "No IP configuration available". After following tutorials and really not understanding what was going on I found out that ifap wasn't even installed. My best guess is that some linux kernel headers are missing as one guy said who had the exact same issue. I don't know which headers to install, or even how to at this point. I checked and I still have the network folder with some files in it, but the interfaces file itself was missing. I also have netplan since 18.04 and up use that as far as I know. Either way, I'm missing some interfaces and I have no idea what to do.

sudo lshw -C network outputs:

       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: enp7s0
       version: 0c
       serial: e0:d5:5e:6a:e9:11
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.11.0-25-generic duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip= latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:18 ioport:d000(size=256) memory:f7100000-f7100fff memory:f2200000-f2203fff

cat /etc/netplan/*.yaml outputs:

# Let NetworkManager manage all devices on this system
  version: 2
  renderer: NetworkManager

dkms status shows nothing.

  • Edit your question and show me sudo lshw -C network and cat /etc/netplan/*.yaml. Start comments to me with @heynnema or I'll miss them. Thanks!
    – heynnema
    Jul 24 at 18:13
  • Hi @heynnema thanks for your comment. I've actually already figured out the problem. My motherboard has a Realtek RTL8111/8168/8411 ethernet controller, which is an exact model that Ubuntu installs a broken driver for. Namely R8169. The working one is R8168. Without internet however, there's little I can do. I don't even know how to manually install a driver in the first place and it all seems like a big headache. TL;DR, I can't use Ubuntu unless I get a new MB or buy a WiFi adapter or something. Sucks.
    – Frappy
    Jul 27 at 6:26
  • The problem probably isn't with the ethernet controller itself. You probably don't need a new motherboard. I have more info that might help get you going. Does your Windows still boot? Does ethernet work under Windows? Are you typing these comments from Windows, or from another computer? Do you have a USB flash key available? Try and answer my two data requests above.
    – heynnema
    Jul 27 at 12:58
  • @heynnema Well yes it's not the ethernet controller itself but it's the broken driver that's causing this. Windows still boots, ethernet works flawlessly under Windows, yes these comments are from Windows, yes I have a USB flash key - although putting the Kubuntu ISO on it with Balena Etcher made it into 2 different partitions and I'm NGL I don't know how to format it, it's write protected.
    – Frappy
    Jul 27 at 13:55
  • The driver probably isn't your only problem with ethernet under Ubuntu. You probably also have a MSI/MSIX interrupt problem, for which I have a patch. But I'm waiting to get the info from my previous comments. You should be able to format the USB key with the Disks or gparted app... but be careful to select the proper drive to format... also... show me the output of dkms status.
    – heynnema
    Jul 27 at 14:12

MSI/MSIX interrupts were enabled for certain ethernet cards in Ubuntu 20.xx. This can cause intermittent ethernet operation. Here's a patch to fix it. Follow the embedded instructions to install.


# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1779817
# Attached is a work-around for the in-kernel driver that is as unhacky as I can make it.

# filename: r8169_disable_msi

# Drop it in /etc/initramfs-tools/scripts/init-top and chmod a+x it. Add 'r8169_disable_msi'
# to your kernel command line (/etc/default/grub, GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# usually.) 

# Remember to update-initramfs and update-grub as necessary.

# sudo update-initramfs -c -k $(uname -r)
# sudo update-grub
# reboot

# For the moment it disables MSI on everything with the ID 0x10ec:0x8168, as there seems to
# be no way to get the MAC version from userspace - and certainly not before the driver is
# loaded. Other PCI IDs may need adding..

# Still hoping we can cherry pick the in-driver workaround for bionic...?

    echo "$PREREQ"
case $1 in
# get pre-requisites
    exit 0

disable_msi () {
    for i in /sys/bus/pci/devices/*; do 
        if [ $(cat $i/vendor) = "0x10ec" -a $(cat $i/device) = "0x8168" ]; then
            echo 0 >$i/msi_bus

for x in $(cat /proc/cmdline); do
        case ${x} in
  • I don't understand half of this, but I'll try to make it work. I do have a question though that can't go w/o an answer. What's the script below? Do you mean I put the script in the file named r8169_disable_msi and then drop that file into /etc/initramfs-tools/scripts/init-top? What do you mean by "Still hoping we can cherry pick the in-driver workaround for bionic...?". Sorry if I'm being annoying. I'm planning on switching to Linux full time and I just want to understand everything. Oh and what language is the script in? What extension does the file need to have in order to work?
    – Frappy
    Jul 27 at 19:21
  • @Frappy The script disables MSI/MSIX interrupts for the ethernet card. Yes, the script goes into that directory, and then sudo chmod a+x to make it executable, Ignore the "Still hoping..." line, it's just for historical purposes. The script is a command shell... type man sh for more info. No extension.
    – heynnema
    Jul 27 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.