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