debian9的网卡问题


最近在一台旧的台式机上安装了debian9用于存储。开机的时候总能赶上一次不能启动网卡,我不知所以然,只是估摸着可能驱动有问题。经过观察在启东时如果报出“Failed to start Raise network interfaces”错误,开机后,网卡加载就会失败。我使用

ifup eth0

启动网卡得到如下错误
failed to load rtl_nic/rt18168e-e.fw

顺着第二条错误我找到了这个软件包的地址:
https://packages.debian.org/wheezy/firmware-realtek
firmware-realtek的下载页面:https://packages.debian.org/wheezy/all/firmware-realtek/download

按照介绍,编辑/etc/source.list在最后加入:
deb http://ftp.cn.debian.org/debian wheezy main non-free
然后执行:

apt-get update
apt-get install -y firmware-realtek

似乎是可以了。

Archives