联想 Y480 ubuntu 安装有线驱动程序
最编程
2024-03-16 20:51:20
...
联想Y480 ubuntu安装有线驱动
电脑可以连无线但不能连有线,推测没有装有线网卡的驱动。上网上找到了方法:
sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2
tar -xj compat-drivers-*
./scripts/driver-select alx
make
sudo make install
sudo modprobe -r alx && sudo modprobe alx
中间在执行make时会提示/home/phithon/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h:49:32: 错误: ‘kref_get_unless_zero’重定义
因为给出了重定义的具体位置,所以我们直接进去看看:
nano /home/phithon/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h
按ctrl + w查找“kref_get_unless_zero”,发现了一个函数
static inline int __must_check kref_get_unless_zero(struct kref *kref)
{
return atomic_add_unless(&kref->refcount, 1, 0);
}
就是这里重定义了,简单地将其注释掉即可。再次make即可通过编译,并最后连上有线网络。
推荐阅读
-
雷神 911Target(双显卡)双系统 Ubuntu 图形驱动程序和 CUDA 的安装
-
深度学习环境配置:华硕主板,Win 10 + UEFI + GPT 和 Ubuntu + Gtx 1080Ti 图形驱动程序 + CUDA 9.1 + Cudnn 7.1 安装在固态硬盘 + 硬盘...
-
Ubuntu 14.04 安装 A-Card HD7750 官方封闭源代码显卡驱动程序
-
在 ubuntu 中安装 A 卡驱动程序
-
在 2010 年之前的电脑上使用 ubuntu 安装 nvidia 驱动程序时出现黑屏现象
-
为 ubuntu2004 桌面系统安装英伟达™(NVIDIA®)图形驱动程序
-
联想 Y480 ubuntu 安装有线驱动程序
-
windows server 2016 安装有线网卡驱动程序
-
Manjaro 安装有线网卡驱动程序
-
安装 ubuntu 系统(ubuntu18.04 有线网络)后无法联网