Ubuntu – No internet connection – – how to reinstall network drivers on Bionic

18.04driversnetworking

I did something bad to my internet drivers (trying to install/make Bluetooth work) and now have no connection.

Have tried v arious published fixes but so far no positive results.
Any help much appreciated!

Output:

guy@guy-Serie-1500:~$ lspci | egrep -i --color 'network|ethernet'
01:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)


guy@guy-Serie-1500:~$ ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 7614  bytes 471123 (471.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7614  bytes 471123 (471.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

guy@guy-Serie-1500:~$ sudo lshw -class network
[sudo] password for guy: 
  *-network UNCLAIMED       
       description: Network controller
       product: RT3290 Wireless 802.11n 1T/1R PCIe
       vendor: Ralink corp.
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:f0510000-f051ffff
  *-network UNCLAIMED
       description: Ethernet controller
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list
       configuration: latency=0
       resources: ioport:2000(size=256) memory:f0404000-f0404fff memory:f0400000-f0403fff

Best Answer

  • Please reboot. Using the Shift key, interrupt the boot process to get to the GRUB menu: https://help.ubuntu.com/community/Grub2

    Select Advanced Options and scroll down to the earlier kernel version, 4.15.0-42-generic. Press Enter to boot it.

    enter image description here

    Once you are booted into -42, I suspect that your networking will now work. If so, we'll reinstall -43:

    sudo apt update
    sudo apt install --reinstall linux-image-4.15.0-43-generic
    sudo apt install --reinstall linux-modules-4.15.0-43-generic
    

    After all is completed, reboot and -43 should now also be working.

    EDIT: In our chat, we found that the ethernet driver you installed was r8168-dkms. The driver either is not signed ar not signed properly to satisfy Secure Boot. After you disabled Secure Boot in the BIOS/EFI, the driver loaded correctly and the ethernet is working.

    We also found that the wireless driver was blacklisted. We removed the blacklist, flipped the Airplane Mode switch and now the wireless is also working.

  • Related Question