Lenovo Y480 ubuntu install wired driver

Lenovo Y480 ubuntu install wired driver#

The computer can be connected wirelessly but not wired. It is speculated that there is no driver for the wired network card. Found a method online:

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

During the execution of make, it will prompt /home/phithon/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h:49:32: error:'kref_get_unless_zero' redefinition

Because the specific location of the redefinition is given, let's go directly in and have a look:

nano /home/phithon/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h

Press ctrl + w to search for "kref_get_unless_zero" and found a function

static inline int __must_check kref_get_unless_zero(struct kref *kref){returnatomic_add_unless(&kref->refcount,1,0);}

This is the redefinition, simply comment it out. Make again to compile and finally connect to the wired network.

Recommended Posts

Lenovo Y480 ubuntu install wired driver
ubuntu: install camera driver
Install Tenda u12 driver on Ubuntu
How to install cuda10.1 driver in Ubuntu
Ubuntu18.04 install Nvidia graphics driver tutorial (graphic)
How to install Ubuntu20.04 and install NVIDIA driver
ubuntu18.04 install python2
ubuntu18.04 install docker
ubuntu12.04 install python3
Ubuntu install guide
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
ubuntu install Jenkins
docker install ubuntu
ubuntu install elasticsearch
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
install vscode on ubuntu18
Install node.js under Ubuntu
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
Install docker on Ubuntu
Ubuntu18.04 install opencv 3.2.0 solution
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install nvidia graphics driver under Ubuntu (easy installation method)
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
ubuntu install harbor warehouse
Install mysql on Ubuntu 14.04
Ubuntu16.04 install Mongodb tutorial
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu
Install Python3 on Ubuntu 14.04
Ubuntu18.04 install Asterisk16.10 + FreePBX15.0
Ubuntu19 install MySQL pit
ubuntu16.04 install node.js, npm
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
pcduino ubuntu install os
Install python in Ubuntu
Install JDK in Ubuntu19.10
Install Python3 on Ubuntu 16.04
Install ROS under ROS Ubuntu 18.04[2]
Ubuntu 18.10 configure Nvidia driver
Install MySQL under Ubuntu
Install KDE on Ubuntu16.04.2
ubuntu install nginx server
Install Yarm-PM2 under Ubuntu
Install Docker on Ubuntu18