ubuntu20.04官方安装I219-V驱动

更新了ubuntu20.04的内核后,缺失网卡驱动与无线网卡驱动,导致无法上网,需要重新安装网卡驱动,本教程仅适合ubuntu20.04安装I219-V有线网卡驱动,无线网卡驱动暂未解决。

1. 查看网卡型号

使用以下命令查看网卡型号,可以看到网卡为I219-V

lspci -v

在这里插入图片描述

2. 下载对应网卡驱动

在intel官网找到I219-V驱动程序
在这里插入图片描述
点击下载e1000e-3.8.4.tar.gz

3. 解压对应网卡驱动

cd  ~/Downloads/
tar -xzvf e1000e-3.8.4.tar.gz

解压后会看到对应e1000e-3.8.4文件夹,文件夹内容如下
在这里插入图片描述

4. 安装网卡驱动

打开readme就能看到详细的安装方法,我们直接从第三步开始

To manually build the driver

  1. Move the base driver tar file to the directory of your choice.
    For example, use ‘/home/username/e1000e’ or ‘/usr/local/src/e1000e’.

  2. Untar/unzip the archive, where <x.x.x> is the version number for the
    driver tar file:

   # tar zxf e1000e-<x.x.x>.tar.gz

————————————————从这里开始安装网卡驱动—————————————————
3. Change to the driver src directory, where <x.x.x> is the version number
for the driver tar:

   # cd e1000e-<x.x.x>/src/
  1. Compile the driver module:
   # make install

The binary will be installed as:
/lib/modules//updates/drivers/net/ethernet/intel/e1000e/e1000e.ko

The install location listed above is the default location. This may differ
for various Linux distributions.

  1. Load the module using the modprobe command.

    To check the version of the driver and then load it:

   # modinfo e1000e
   # modprobe e1000e

Alternately, make sure that any older e1000e drivers are removed from the
kernel before loading the new module:

   # rmmod e1000e; modprobe e1000e

——————————————————以下可以不用操作——————————————————
6. Assign an IP address to the interface by entering the following,
where is the interface name that was shown in dmesg after modprobe:

   # ip address add <IP_address>/<netmask bits> dev <ethX>
  1. Verify that the interface works. Enter the following, where IP_address
    is the IP address for another machine on the same subnet as the interface
    that is being tested:
   # ping <IP_address>

—————————————————————重要——————————————————————
Note: For certain distributions like (but not limited to) Red Hat Enterprise
Linux 7 and Ubuntu, once the driver is installed, you may need to update the
initrd/initramfs file to prevent the OS loading old versions of the e1000e
driver. Use the dracut utility on Red Hat distributions:

	# dracut --force

For Ubuntu:

	# update-initramfs -u

至此完成安装

  • 5
    点赞
  • 37
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
要在Ubuntu 20.04安装I225 2.5G网卡的驱动,你可以按照以下步骤进行操作。 1. 首先,确保你的系统已连接到互联网。如果你的网卡无法被Ubuntu系统识别,你可以考虑使用外置网卡进行安装。 2. 接下来,你可以使用自带的Additional Drivers工具来安装NVIDIA GPU驱动。打开“软件和更新”应用程序,然后选择“附加驱动”选项卡。系统将扫描可用的驱动程序并显示给你选择。 3. 如果你想使用离线文件进行安装,你可以直接从NVIDIA官方网站下载驱动程序。在终端中运行以下命令来下载CUDA驱动安装文件: ``` wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin ``` 请注意,这里只是下载了驱动安装文件的示例。你需要根据你的具体情况找到正确的驱动程序。 4. 安装驱动程序。在终端中导航到你下载的驱动文件所在的目录,并运行以下命令: ``` sudo sh cuda-ubuntu2004.pin ``` 这将启动驱动程序的安装过程。按照安装程序的提示进行操作。 这些步骤将帮助你在Ubuntu 20.04安装I225 2.5G网卡的驱动。请确保按照上述步骤进行操作,并根据你的具体情况调整命令和驱动程序的文件名。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Ubuntu20.04安装Tensorflow2.5 - GPU](https://blog.csdn.net/qq_42242829/article/details/120491127)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [Ubuntu20.04 安装r81252.5G网卡步骤-华硕Z690p主板驱动 两种方式](https://download.csdn.net/download/shikong1024/86512700)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HIT_Vanni

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值