Install Realtek 8152 or 8153 drivers on Ubuntu 16.10

Solution 1:

Here's what I did to get the driver working on Debian Stretch:

1) Download official driver from realtek: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software

2) untar it: # tar xvf ./r8152.53.56-2.12.0.tar

3) make sure you have current kernel headers installed sudo apt install linux-headers-$(uname -r)

4) compile the driver cd r8152_2.12.0 && make

5) install the compiled driver sudo make install