Repository Version of r8168-dkms (8.046.00) to old for Kernel 5.3.x

MarvinE

Well-Known Member
Jan 16, 2020
123
17
58
28
Hello,

the driver package r8168-dkms (8.046.00) for Realtek network cards can not installed on the lates kernel.
Following error:

Code:
error: too few arguments to function ‘synchronize_irq’
28376 |         synchronize_irq();  /* FIXME: should this be synchronize_irq()? */

The same error is described here: https://github.com/mtorromeo/r8168/issues/21

Installing the r8168-dkms .deb Version 8.048.00-1 from debian sid https://packages.debian.org/de/sid/r8168-dkms solves the issue.

Please update your repository to prevent trouble after an upgrade.

Thanks.
 
Last edited:
Hi,

thanks for sharing this to the community!

A note about the sid repo: If you add a sid (unstable) repo ensure it gets pinned with a lower priority so that only packages get pulled from there if you decide actively that you want, else you get a "Frankenstein's Debian" fast and with that a lot of issues and no support from us.

To pin unstable (Sid) you can create the file /etc/apt/preferences.d/limit-testing with the following content:
Code:
Package: *
Pin: release a=unstable
Pin-Priority: 50

Which falls in the following range rules from man apt_preferences:
0 < P < 100
causes a version to be installed only if there is no installed version of the package

You can then explicitly install any package by using the -t switch: apt install -t unstable r8168-dkms
("unstable" and "sid" are the same in Debian repository terms)
 
Thanks for this information that allow me to instal r8168 for my realtek 8168 board

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)


, using
https://packages.debian.org/en/sid/r8168-dkms

But, now I'm stuck at 10Mb. (I tried the same machine with another OS and it runs 1Gb Full Duplex)

using Ethtool
Code:
ethtool -s enp6s0 autoneg off speed 1000 duplex full
Forcing to 1Gbs or even 100Mbps result in network card not working

Your help hints leads would be greatly appreciated.