Linux RTL8111 / RTL8168 不能联网 | 驱动下载安装

英文引文,机翻未校。
中文引文,略作重排。
如有内容异常,请看原文。


How to get an Realtek RTL8111/RTL8168 working under Linux

如何让 Realtek RTL8111/RTL8168 在 Linux 下工作

TuxByte, Feb 07, 2024

So, this article was released in August 2016 on my original blog. Even though the situation with RTL8111/RTL8168 network interfaces under Linux has become more and more stable these days, they still can cause problems like packet loss or an unstable network connection in general.
这篇文章于 2016 年 8 月在我的原始博客上发布。尽管 Linux 下 RTL8111/RTL8168 网络接口的情况如今越来越稳定,但它们仍然会导致数据包丢失或网络连接不稳定等问题。

With this short guide I want to show you how to install the r8168 instead of the r8169 driver. The r8169 driver is default by most Linux distributions these days. The r8168 driver is sometimes more stable but not enabled by default due to license restrictions. This guide describes two ways to install the r8168 driver.
通过这个简短的指南,我想向您展示如何安装 r8168 而不是 r8169 驱动程序。r8169 驱动程序是当今大多数 Linux 发行版的默认驱动程序。r8168 驱动程序有时更稳定,但由于许可证限制,默认情况下不启用。本指南介绍了两种安装 r8168 驱动程序的方法。

Requirements

要求

This guide assumes that you have a working network connection. If you already have a Wi-Fi / ethernet adapter / dongle you can simply use this one or you can buy yourself an USB ethernet adapter or Wi-Fi dongle which is fully supported by the Linux kernel. An additional network adapter is only required if you can’t download the packages with your actual RTL8111/RTL8168 and the r8169 driver (for e.g. because you’re already experiencing a massive packet loss / connection interruptions). An alternative would be to download each package individually (the r8168 driver AND dependencies) from another computer and transfer it with an USB stick. But using an USB ethernet adapter is definitly the way more convenient way here.
本指南假定您有一个有效的网络连接。如果您已经有 Wi-Fi / 以太网适配器 / 加密狗,您可以简单地使用它,或者您可以自己购买 Linux 内核完全支持的 USB 以太网适配器或 Wi-Fi 加密狗。只有当您无法下载带有实际 RTL8111/RTL8168 和 r8169 驱动程序的软件包时(例如,因为您已经遇到了大量的数据包丢失/连接中断),才需要额外的网络适配器。另一种方法是从另一台计算机单独下载每个软件包(r8168 驱动程序和依赖项),然后用 U 盘传输。但是使用 USB 以太网适配器绝对是更方便的方式。

The automatic way (only for Debian and Ubuntu)

自动方式(仅适用于 Debian 和 Ubuntu)

Debian added the r8168 driver a few years ago to their non-free repository. With that being said, if you haven’t enabled the non-free repository in your Debian installation yet, you have to do this now. If you’re using the latest Debian release (as of writing this article the latest one being bookworm), you have to adjust your /etc/apt/sources.list file like this:
Debian 几年前将 r8168 驱动程序添加到他们的非自由仓库中。话虽如此,如果你还没有在 Debian 安装中启用 non-free 仓库,你现在必须这样做。如果你使用的是最新的 Debian 版本(在撰写本文时,最新的版本是 bookworm),你必须像这样调整你的 /etc/apt/sources.list 文件:

deb [http://deb.debian.org/debian/](http://deb.debian.org/debian/) bookworm main contrib non-free

For Ubuntu their non-free repository is called universe. With Ubuntu 22.04 it is most likely already enabled. You can check your /etc/apt/sources.list and if the universe repository is missing adjust the file so that it contains somethi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值