之前一直用小米的驱动,但是感觉太慢了,所以还是决定使用有线连接。

但是之前进入Linux系统后,有线连接没有,所以需要安装驱动。

01 查询网卡类型(Windows)

进入windows系统,进入CMD命令行,输入systeminfo
查询网卡类型

网卡:             安装了 2 个 NIC。
[01]: Realtek PCIe 2.5GbE Family Controller
连接名:      以太网 2
启用 DHCP:   是
DHCP 服务器: 10.193.0.1
IP 地址
[01]: 10.193.194.9
[02]: fe80::9b6:1e28:e575:69cd
[03]: 2001:da8:1002:8040::2:939c
[02]: Xiaomi 802.11n USB Wireless Adapter
连接名:      WLAN 2
状态:        媒体连接已中断

02 查询网卡驱动(Ubuntu)

在 Ubuntu打开终端,输入lspci -v 查看网卡驱动

如果末尾显示:Kernel driver in use:r8169

说明驱动版本不符,需要重新安装驱动,要安装RTL8125

选择安装RTL8125,是根据windows查询到的网卡类型选择的

查询结果如下:

guyue@guyue:~$ lspci -v
00:00.0 Host bridge: Intel Corporation Device 9b53 (rev 03)Subsystem: ASUSTeK Computer Inc. Device 8694Flags: bus master, fast devsel, latency 0Capabilities: <access denied>00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 03) (prog-if 00 [Normal decode])Flags: bus master, fast devsel, latency 0, IRQ 120Bus: primary=00, secondary=01, subordinate=01, sec-latency=0I/O behind bridge: 00004000-00004fffMemory behind bridge: 91000000-920fffffPrefetchable memory behind bridge: 00000000a0000000-00000000b1ffffffCapabilities: <access denied>Kernel driver in use: pcieport00:14.0 USB controller: Intel Corporation Device a3af (prog-if 30 [XHCI])Subsystem: ASUSTeK Computer Inc. Device 8694Flags: bus master, medium devsel, latency 0, IRQ 125Memory at 4000010000 (64-bit, non-prefetchable) [size=64K]Capabilities: <access denied>Kernel driver in use: xhci_hcd00:16.0 Communication controller: Intel Corporation Device a3baSubsystem: ASUSTeK Computer Inc. Device 8694Flags: bus master, fast devsel, latency 0, IRQ 136Memory at 4000025000 (64-bit, non-prefetchable) [size=4K]Capabilities: <access denied>Kernel driver in use: mei_meKernel modules: mei_me00:17.0 SATA controller: Intel Corporation Device a382 (prog-if 01 [AHCI 1.0])Subsystem: ASUSTeK Computer Inc. Device 8694Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 126Memory at 92304000 (32-bit, non-prefetchable) [size=8K]Memory at 92307000 (32-bit, non-prefetchable) [size=256]I/O ports at 5050 [size=8]I/O ports at 5040 [size=4]I/O ports at 5020 [size=32]Memory at 92306000 (32-bit, non-prefetchable) [size=2K]Capabilities: <access denied>Kernel driver in use: ahciKernel modules: ahci00:1b.0 PCI bridge: Intel Corporation Device a3e9 (rev f0) (prog-if 00 [Normal decode])Flags: bus master, fast devsel, latency 0, IRQ 121Bus: primary=00, secondary=02, subordinate=02, sec-latency=0I/O behind bridge: 00006000-00006fffMemory behind bridge: 90000000-901fffffPrefetchable memory behind bridge: 0000004000100000-00000040002fffffCapabilities: <access denied>Kernel driver in use: pcieport00:1c.0 PCI bridge: Intel Corporation Device a392 (rev f0) (prog-if 00 [Normal decode])Flags: bus master, fast devsel, latency 0, IRQ 122Bus: primary=00, secondary=03, subordinate=03, sec-latency=0I/O behind bridge: 00007000-00007fffMemory behind bridge: 90200000-903fffffPrefetchable memory behind bridge: 0000004000300000-00000040004fffffCapabilities: <access denied>Kernel driver in use: pcieport00:1c.3 PCI bridge: Intel Corporation Device a393 (rev f0) (prog-if 00 [Normal decode])Flags: bus master, fast devsel, latency 0, IRQ 123Bus: primary=00, secondary=04, subordinate=04, sec-latency=0I/O behind bridge: 00003000-00003fffMemory behind bridge: 92200000-922fffffCapabilities: <access denied>Kernel driver in use: pcieport00:1d.0 PCI bridge: Intel Corporation Device a398 (rev f0) (prog-if 00 [Normal decode])Flags: bus master, fast devsel, latency 0, IRQ 124Bus: primary=00, secondary=05, subordinate=05, sec-latency=0Memory behind bridge: 92100000-921fffffCapabilities: <access denied>Kernel driver in use: pcieport00:1f.0 ISA bridge: Intel Corporation Device a3c8Subsystem: ASUSTeK Computer Inc. Device 8694Flags: bus master, medium devsel, latency 000:1f.2 Memory controller: Intel Corporation Device a3a1Subsystem: ASUSTeK Computer Inc. Device 8694Flags: fast devselMemory at 92300000 (32-bit, non-prefetchable) [disabled] [size=16K]00:1f.3 Audio device: Intel Corporation Device a3f0Subsystem: ASUSTeK Computer Inc. Device 8797Flags: bus master, fast devsel, latency 32, IRQ 137Memory at 4000020000 (64-bit, non-prefetchable) [size=16K]Memory at 4000000000 (64-bit, non-prefetchable) [size=64K]Capabilities: <access denied>Kernel driver in use: snd_hda_intelKernel modules: snd_hda_intel, snd_sof_pci00:1f.4 SMBus: Intel Corporation Device a3a3Subsystem: ASUSTeK Computer Inc. Device 8694Flags: medium devsel, IRQ 11Memory at 4000024000 (64-bit, non-prefetchable) [size=256]I/O ports at efa0 [size=32]01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f0a (rev a1) (prog-if 00 [VGA controller])Subsystem: ASUSTeK Computer Inc. Device 879bFlags: bus master, fast devsel, latency 0, IRQ 142Memory at 91000000 (32-bit, non-prefetchable) [size=16M]Memory at a0000000 (64-bit, prefetchable) [size=256M]Memory at b0000000 (64-bit, prefetchable) [size=32M]I/O ports at 4000 [size=128]Expansion ROM at 000c0000 [disabled] [size=128K]Capabilities: <access denied>Kernel driver in use: nouveauKernel modules: nvidiafb, nouveau01:00.1 Audio device: NVIDIA Corporation Device 10f9 (rev a1)Subsystem: ASUSTeK Computer Inc. Device 879bFlags: bus master, fast devsel, latency 0, IRQ 17Memory at 92080000 (32-bit, non-prefetchable) [size=16K]Capabilities: <access denied>Kernel driver in use: snd_hda_intelKernel modules: snd_hda_intel04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8125 (rev 04)Subsystem: ASUSTeK Computer Inc. Device 87d7Flags: fast devsel, IRQ 19I/O ports at 3000 [size=256]Memory at 92200000 (64-bit, non-prefetchable) [size=64K]Memory at 92210000 (64-bit, non-prefetchable) [size=16K]Capabilities: <access denied>Kernel modules: r816905:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. Device 500e (rev 01) (prog-if 02 [NVM Express])Subsystem: Kingston Technology Company, Inc. Device 500eFlags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0Memory at 92100000 (64-bit, non-prefetchable) [size=16K]Capabilities: <access denied>Kernel driver in use: nvmeKernel modules: nvme

03 Ubuntu下安装驱动

进入官网

  • https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

选择Linux下的 r8125 进行安装

下载下来的文件名为:r8125-9.007.01.tar.bz2

将此文件右键解压缩,然后把压缩文件复制到想要安装的位置

然后进入此目录下,运行以下指令

cd ~/software/r8125-9.007.01
sudo chmod +x autorun.sh
sudo ./autorun.sh

运行结果如下:

guyue@guyue:~/software/r8125-9.007.01$ sudo chmod +x autorun.sh
[sudo] guyue 的密码:
guyue@guyue:~/software/r8125-9.007.01$ sudo ./autorun.shCheck old driver and unload it.
rmmod r8169
Build the module and install
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
sign-file: certs/signing_key.pem: No such file or directory
Warning: modules_install: missing 'System.map' file. Skipping depmod.
Backup r8169.ko
rename r8169.ko to r8169.bak
DEPMOD 5.4.0-90-generic
load module r8125
Updating initramfs. Please wait.
update-initramfs: Generating /boot/initrd.img-5.4.0-90-generic
Completed.

安装完后运行以下指令,更新软件

sudo apt-get update
sudo apt-get install ubuntu-make

04 后续问题解决

电脑重启以后,网络有线连接又没有了,然后重新运行下述代码,网络有限连接就又有了

cd ~/software/r8125-9.007.01
sudo chmod +x autorun.sh
sudo ./autorun.sh

05 参考

  • https://blog.csdn.net/weixin_43077628/article/details/114497451
  • https://blog.csdn.net/qq_38365929/article/details/119799973

Ubuntu 18.04 安装网卡驱动(有线连接)相关推荐

  1. 联想R7000 ubuntu 18.04 安装1650ti驱动

    联想R7000 ubuntu 18.04 安装1650ti驱动 楼主电脑型号:联想R7000 R7-4800H 1650ti ubuntu18.04双系统 网上大概给出的安装ubuntu安装独显驱动方 ...

  2. Ubuntu 18.04 安装NVIDIA驱动 实践

    安装Ubuntu 18.04是采用UEFI安装的,不知道为什么在终端输入ubuntu-drivers devices,之后什么驱动信息都没有返回,无奈才先实验了第2,3种方法.发现都不能安装成功,之后 ...

  3. ubuntu 14.04 安装网卡驱动

    Ubuntu 14.04 Desktop安装完之后发现网络一直无法连接.搜了很多资料后发现可能是驱动的问题. 网卡型号:Ethernet controller: Realtek Semiconduct ...

  4. Ubuntu 18.04 安装显卡驱动+CUDA10+多版本CUDA+Tensorflow gpu1.13.1

    废话不多说,直奔主题! 一.安装驱动 1.去官网下载驱动,这个根据自己的显卡去搜索,比如我的卡是RTX2070: 然后点击"搜索"按钮,出现界面: 这里提示对应的驱动版本,点击下载 ...

  5. 华硕笔记本:Ubuntu 18.04安装Nvidia驱动

    1 查看系统推荐版本 在ubuntu18.04已经安装好前提下,需要查看驱动信息 指令: ubuntu-drivers devices 这里推荐的是470版本,465也可以. 2 下载对应的驱动软件版 ...

  6. ubuntu 18.04 安装NVIDIA驱动 cuda/cudnn + tensorflow-gpu + pytorch

    电脑换了华硕新主板,需要重装系统,用的Ubuntu18.04的系统,电脑用的显卡是GTX1080Ti.在新系统中装显卡驱动过程中遇到很多坑,中间无奈搞乱环境又重装了一次系统,再次尝试,终于成功.整个过 ...

  7. Ubuntu 18.04安装显卡驱动

    安装完双系统,我遇到好几次开机或关机有问题,导致我重装了3次系统,第三次我才知道是显卡驱动问题,Ubuntu预装的开源Nvidia驱动太烂了,需要换官方驱动. 把 nouveau 驱动加入黑名单 $s ...

  8. ubuntu 18.04 安装无线驱动和显卡驱动

    一. 安装无线驱动 我的是MT7630E的网卡驱动,去github下载MT7630E的zip包 解压缩 根据github MT7630E页面的指示,目录下运行以下命令: sudo apt instal ...

  9. Ubuntu 18.04 安装nvidia驱动后无法正常开机

    nvidia驱动安装有三种方式:官网下载(下载完一定先记录下安装的包的名字,并且将安装包移动至主目录下.我的是:NVIDIA-Linux-x86_64-470.129.06.run).ppa.软件和更 ...

最新文章

  1. 编译器GCC与Clang的异同
  2. s1200 博图高速脉冲计数值没有变化_赤峰发泡硅胶板,高速公路橡胶垫橡胶厂-京品吉...
  3. Android中edittext一些属性设置
  4. Axure RP Pro - 翻译 - Download下载 - Axure RP Pro 5.5.0.1955
  5. mysql最简单的查看_查看Mysql版本号 (最简单的是status )
  6. Wireshark实战分析之DHCP协议(二)
  7. java如何防止sql注入
  8. Excel如何实现行列转换及行倒置
  9. mysql Can't locate Data/Dumper.pm in @INC
  10. 安卓中压缩纹理ETC1和ETC2
  11. 珍惜生命,战胜自己,活出精彩
  12. servlet的异步和非阻塞原理
  13. 【老九学堂】【初识C语言】常用字符串函数
  14. 第二篇第一章概述及第二章生产和储存物品的火灾危险性分类 重点在于表格...
  15. Accumulation Degree --- 换根dp
  16. Android APP性能分析工具大全
  17. 高速—HDMI布线规则
  18. 高姿态下的面部表情识别系统
  19. 计算机辅助药物合成投什么期刊,计算机辅助药物设计在药物合成中的应用.pdf...
  20. 数论概论读书笔记 13.素数的计数

热门文章

  1. SpringMVC学习系列(5) 之 数据验证
  2. Kubernetes--自动缩扩容
  3. dalvik模式和art模式的区别
  4. html格式自动出现乱码,HTML页面乱码怎么解决?
  5. 什么叫组网_什么是Mesh自组网?这篇文章是讲清楚了!
  6. 分享马化腾在3Q大战后写给腾讯全体员工的一封信
  7. ゃōゃ♥ ♡๑۩ﺴ ☜ ☞ 一些小符号
  8. 26.纯 CSS创作按钮被从纸上掀起的立体效果
  9. css3实现折叠效果_使用CSS3创建灵活的折叠纸效果
  10. 计算机实战项目之 论文辩论PPT+源码等]精品微信小程序ssm培训机构管理系统+后台管理系统