Ubuntu – How to install the Realtek RTL8111E version 8168 driver


I downloaded and extracted the latest Linux driver version from Realtek. I read the readme file and it instructed me to run ./autorun.sh as root. I did that. It compiled the driver for my kernel, removed the old default module, but then it fails to install the new 8168 module. It claims that it can't be found.

Can this driver be installed manually? Is there a way to fix autorun.sh so it can install properly?

Best Answer

Assuming your r8168 was compiled correctly, do the following:

  1. Create dependency list of kernel modules:

    sudo depmod -a
  2. Add this line to /etc/modprobe.d/blacklist.conf:

     blacklist r8169
  3. Edit /etc/initramfs-tools/modules and add line:

  4. Update existing initramfs:

    sudo update-initramfs -v -u -k `uname -r`

Note that in command 4, those are not quotation marks, but grave accents. That is the key to the left of the one key on the alpha part of the keyboard.

Reboot. You should come up running r8168. To verify, run

sudo lspci -v