Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 621  / 3 Years ago, fri, september 17, 2021, 12:46:23

I discovered that the latest driver for my computers ethernet-adapter did not work. I fixed this by downloading an earlier driver, which worked perfectly.



However every time I run "apt-get upgrade", the driver I have downgraded gets updated. While simply reinstalling the old driver fixes the issue, it's quite annoying.



I'm running Ubuntu 11.10 64-bit. The driver that works is "r8168" and the newer driver that doesn't work is "r8169".



Is there a way to tell apt not to install the newer, not working, driver?


More From » 11.10

 Answers
4

I have this exact same issue with drivers: it's a well known Linux kernel problem with Realtek ethernet adapters, see here and here. I'm guessing you installed the r8168 driver from Realtek by hand on top of the r8169 driver that comes with the Linux kernel. Note that these numbers are not version numbers, but product names. Some people say the r8168 driver from Realtek works better than the r8169 driver from the Linux kernel.



If I'm right, then you're installing a kernel module on top of the drivers installed by the linux-image-* package from apt. When you upgrade that script it rebuilds your kernel modules and doesn't know to re-install your custom driver. The problem isn't the driver so much as the whole kernel.



You could try pinning linux-image so that apt doesn't ever upgrade it, but then you lose kernel upgrades. Alternately you can reinstall the Realtek driver by hand after every kernel upgrade by re-running autorun.sh from the r8168 code. A third option, one of the links above has a solution that recommends blacklisting the r8169 module that comes with the kernel. However that may leave you with a kernel with no driver for your ethernet, I don't know enough about modules and ramdisks to advise you safely.


[#41690] Saturday, September 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
intssive

Total Points: 493
Total Questions: 119
Total Answers: 101

Location: Liberia
Member since Mon, Feb 1, 2021
3 Years ago
intssive questions
Tue, Mar 21, 23, 08:19, 1 Year ago
Wed, Aug 31, 22, 04:04, 2 Years ago
Sat, Sep 25, 21, 15:09, 3 Years ago
Fri, Dec 31, 21, 09:13, 2 Years ago
;