Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Ubuntu 12.04-64 bit on my Lenovo IdeaPad laptop, and the wired Ethernet (LAN) connection doesn't work.

Running the lspci -vv | grep Atheros command from the terminal shows me I have the AR8161 Gigabit Ethernet controller:

02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 08)

This looks like a new product whose drivers are not built into Ubuntu.

How do I install drivers to get the AR8161 working?

share|improve this question
    
sudo modeprobe ath9k –  BigSack Aug 14 '12 at 13:47
1  
Please remember to accept/upvote the best answer(s) to your question when possible (tick/check mark on the left). This way, the question is marked as "answered" and future readers can refer to it knowing the solution works. Thank you...:) –  izx Aug 26 '12 at 17:11
add comment

2 Answers 2

Ubuntu now provides a package for this driver.

To install the driver:

sudo apt-get install linux-backports-modules-cw-3.4-precise-generic
sudo modprobe alx
share|improve this answer
4  
or newer 3.5, 3.6, available as packages too, e.g. linux-backports-modules-cw-3.6-precise-generic –  gertvdijk Jan 1 '13 at 23:33
1  
Make sure you bring up the interface afterwards, ie: ifconfig eth0 up && sudo dhclient eth0 –  Scott Ritchie Feb 8 '13 at 22:34
3  
@gertvdijk Nope, newer packages don't contain the alx module. Only 3.4 works. Don't know the reason. The card is not claimed by any driver with 3.6 version at least. packages.ubuntu.com/… –  Jorge Suárez de Lis Feb 15 '13 at 11:24
    
@JorgeSuárezdeLis Actually, I can confirm 3.6 has worked. I just installed 3.6 before I read your comment but it seems to have worked anyway. –  Cyntech Jun 15 '13 at 13:02
    
linux-backports-modules-cw-3.8-3.2.0-48-generic did NOT have alx installed. Also, if you have no Internet connection on your target machine, you can download the driver from pkgs.org/ubuntu-12.04/ubuntu-updates-main-amd64/… (be sure to modify the last set of numbers to match your current kernel (see uname -a) –  User1 Jul 10 '13 at 4:32
show 1 more comment

The AR8161 is a very new combined Ethernet/Bluetooth controller and its driver alx is in the testing/QA process, so it's not in the kernel yet.

To build and install the driver:

We will download a recent compat-wireless-pc driver package, install build dependencies, select the AR8161 module alx, build and install it.

Type/paste the following, line-by-line, in a terminal:

sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget -O- http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 | tar -xj
cd compat-wireless-2012-07-03-pc
./scripts/driver-select alx
make
sudo make install

You can then reboot, or manually load the driver with:

sudo modprobe alx
share|improve this answer
1  
+1 this always works. –  BigSack Aug 14 '12 at 13:47
    
Thanks i made this a gist! gist.github.com/3406323 –  chrisjlee Sep 5 '12 at 15:01
    
Thank you for giving exact, working directions. –  clemahieu Oct 10 '12 at 14:49
5  
How the heck "sudo apt-get install" if the network card is not working?? –  Ivan Nov 14 '12 at 22:22
2  
@Ivan, I'm sure you've moved on by now, but, help.ubuntu.com/community/AptCdrom –  Tim Harper Jun 12 '13 at 20:37
show 7 more comments

protected by Community Aug 15 '12 at 14:29

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.