Fix on ubuntu 22.04
apt-get install build-essential linux-headers-$(uname -r)
sh -c 'echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf'
curl -L https://github.com/mtorromeo/r8168/archive/refs/tags/8.051.02.tar.gz -o /tmp/8.051.02.tar.gz
cd /tmp/
tar xfvz 8.051.02.tar.gz
cd /tmp/r8168-8.051.02
./autorun.sh