您当前的位置: 首页 >  ubuntu
  • 1浏览

    0关注

    483博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Ubuntu18.04安装RTL8125/RTL8168等网卡驱动程序

高精度计算机视觉 发布时间:2022-01-30 18:38:01 ,浏览量:1

Ubuntu下的驱动程序在这里下载,

Realtek PCIe FE / GBE / 2.5G / Gaming Ethernet Family Controller Software - REALTEK 其中第一个是用得最多的,很多通用笔记本用的R8125(Realtek8125),其中包括R8162等硬件也是用的这个驱动。

R8168貌似没那么常见。下面的过程适合Realtek相应的任何一款驱动,亲测在Ubuntu18.04上都可以成功安装。

当然,前提条件是你的电脑能上网。在网卡不通的情况下,我通常会通过手机共享网络或使用USB_WIFI的方式连网。安装完驱动之后,就可以直接使用网线连接了。

言归正传,首先下载安装 Openssl,

sudo apt-get update
sudo apt-get install gcc make

git clone --recursive https://github.com/openssl/openssl.git
cd openssl
./Configure
make
make test
sudo make install
sudo ldconfig /usr/local/lib64/

===================================

然后安装r8168的驱动,

user@UBUNTU:~/mc/r8168-8.049.02$ sudo ./autorun.sh
Check old driver and unload it.
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-96-generic
load module r8168
modprobe: ERROR: could not insert 'r8168': Operation not permitted
Updating initramfs. Please wait.
update-initramfs: Generating /boot/initrd.img-5.4.0-96-generic
I: The initramfs will attempt to resume from /dev/sda6
I: (UUID=3c85298d-8075-4360-8a78-bf16feba10f7)
I: Set the RESUME variable to override this.
Completed.

这里我们可以看到有一大堆的报错,我们一个一个来解决。

问题1:SSL证书上的问题

- 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

解决办法参考:https://github.com/andikleen/simple-pt/issues/8

cd /lib/modules/$(uname -r)/build/certs

sudo tee x509.genkey > /dev/null             
关注
打赏
1661664439
查看更多评论
0.0392s