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
关注
打赏
- 对CSDN网站关于抄袭的投诉的处理建议
- Tesseract OCR训练时碰到的问题和解决方案
- VSCODE在Jetson Nano上打不上断点,无法调试python源码
- ROS2进阶:在windows10上用vs2019编译rviz2
- ROS2 ERROR: OpenGL 1.5 is not supported in GLRenderSystem::initialiseContext at C:\ci\ws\build...
- ROS2 error: can‘t find examples_rclcpp_minimal_subscriber/Release/wait_set_subscriber_library.lib
- 在windows上安装 chocolatey.1.1.0.nupkg
- Qt开发高级进阶:如何在显示时适合视窗宽度和高度(fitWidth+fitHeight)
- PySpark ERROR: Python in worker has different version 3.9 than that in driver 3.8
- cv2.imshow error: The function is not implemented. Rebuild the library with Windows...