This answer covers completely non-functional wireless LAN only. It is not about stability/performance issues, or half-working cases. However, some steps may be helpful in case you're running into them and looking for other options.
In this answer I'm assuming you're familiar with at least the following tasks: running commands in a terminal and installing regular Ubuntu software packages. If you're not familiar with these basic steps, start reading this and this.
Get the machine connected to the internet. This makes performing the the steps a lot easier and to use the clipboard for the actions.
If another network card is working, this should be easy. If your only card is failing at this point, find alternatives to this and be creative, e.g. using an USB wired network adapter or an alternative working WiFi adapter borrowed from a friend or neighbour.
Make sure you have installed the following packages:
Update your system. By installing all latest (regular) system updates, bug fixes already released by developers after the release should be on your PC by doing so. Don't forget to reboot your system afterwards. See also How do I update Ubuntu?
After applying all updates, reboot. It may already work in this stage. If not, just continue.
Is it really a driver issue?
First of all, one should determine whether the card isn't recognized and/or if it's a radio kill switch preventing it from working. Follow all steps below, as your problem may be two- or three-fold:
sudo lshw -C network in a terminal.
You might need to install
- In case multiple devices are listed, locate the device concerned.
- In case it's listed as
*-network UNCLAIMED, you should follow the steps in Installing (newer) drivers.
- In case it's listed as
*-network (without 'Unclaimed'), the output below about the driver could be relevant in further steps, e.g.
configuration: broadcast=yes driver=iwlwifi
- In case your device isn't listed at all, try the additional steps in Identifying the exact hardware.
rfkill list in a terminal. This lists the state of radio killswitches. Sample output:
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
- In case you see
Hard blocked: refer to your notebook manual for a hardware switch for Wireless LAN.
- In case you see
Soft blocked: hotkeys on your notebook may help activating it, as well as hitting "Enable Wireless" in the Network Manager applet. If that fails to remove the soft block, run
sudo rfkill unblock all.
- In case you don't see any kill switches listed: this might not apply for your device. Usually only mobile PCs are equipped with killswitches.
Only for USB devices: exclude USB-level issues.
- Preferably, try one directly attached to your mainbord, avoiding hubs or your computer case's connectors.
- Try using another type of USB port (e.g. USB2.0 instead of USB3.0 port).
- Go to Identifying the exact hardware and see if you can see some error messages when you plug in your device.
- Try another cable (if any) you've verified is working.
Installing (newer) drivers
These are some obvious, sane and harmless steps to take, avoiding the ones listed in Things to avoid if possible.
Try to see if Ubuntu suggests to install additional drivers. Refer to How do I install additional drivers? for more information on how to do do this.
Install additional firmware as this may be required for your hardware.
- Make sure you have enabled
multiverse as posted in How do I enable the "multiverse" repository?
- Install both
linux-firmware-nonfree packages, e.g.
sudo apt-get install linux-firmware linux-firmware-nonfree and reboot.
Try backported kernel modules (drivers) from the compat-wireless package. Ubuntu provides packages of compat-wireless of more recent Linux kernel releases for the kernel with the stable distribution (available since 11.10 Oneiric Ocelot).
- Find the latest ones available by searching with your favourite package management tool. At the time of writing, this was
linux-backports-modules-cw-3.6-quantal-generic for Quantal. In the near future, a
3.7 package may be out.
- Install it, e.g.
sudo apt-get install linux-backports-modules-cw-3.6-quantal-generic for Quantal, or
sudo apt-get install linux-backports-modules-cw-3.6-precise-generic for Precise. Then reboot.
In case you're running an LTS release (e.g. Precise or Lucid), backported kernels of all next releases are provided as a package. At the time of writing Quantal is the latest release after Precise and the package is
linux-image-generic-lts-quantal and boot into your new kernel.
From here on, you should consider trying out a more recent release of Ubuntu to see if it has gained support for your hardware, just by booting from a Live CD/USB. Also consider trying the latest Beta/RC of Ubuntu+1. If it does work, the easiest approach is to simply wait for the new release.
Some hardware is just utterly broken on default installs, usually because the vendor isn't releasing (all) source code or does not allow redistribution of all required modules via Ubuntu. See the Hardware requiring special care section at the bottom to see if your device (chipset) is listed.
Try the latest stable Linux kernel. This is a less harmless approach and may break other stuff. This should not be necessary as the more recent wireless drivers are provided by the compat-wireless package in the earlier option. However, it may just a bit newer and therefore include a bugfix helping you out.
- Go to the
kernel.ubuntu.com downloads section and identify the latest stable release (e.g.
v3.7.1-raring at the time of writing).
- Download all the
.deb files for your architecture (e.g.
i386), plus the ones with
all in the name.
Install them all at once by issuing e.g.:
sudo dpkg -i linux-headers-3.7.1-030701-generic_3.7.1-12345678_amd64.deb linux-image... # include all
and finally, reboot into your new kernel.
- if the new kernel doesn't work for you or introduces other issues, boot your system using the older kernel (e.g. hold Shift during the early boot stage to select it in the Grub menu) and then remove the packages using your package management e.g.
sudo apt-get remove linux-\*3.7.1\*.
Identifying the exact hardware
The product you have was probably sold using a retail name completely irrelevant to you issue. Most vendors just use chipsets from manufacturers like Broadcom, Atheros, Ralink or Intel while the product itself may not carry this name. One example of this: a ThinkPad 11a/b/g/n Wireless LAN Mini Express Adapter may in fact just be a
Atheros AR5418. The Thinkpad rebrand does usually not affect the hardware support in Linux, but the used chipset does. Therefore, it's of great importance to identify the chipset.
PCI and integrated devices (e.g. mobile PCs):
lspci -nn | grep -i network
In case you have trouble identifying it from this list:
- Unplug the device.
- Open a terminal and run
sudo tail -n 0 -f /var/log/syslog
- Re-plug the device in and give the kernel/device a few seconds to initialize.
- Stop the command by pressing Ctrl+C. The output should help identifying it from the list.
- Check for output mentioning
unable to enumerate USB device. If such output is present, your device is already failing on communication on USB-level. You're hitting a hardware issue probably: check for broken cables/connectors, power issues, broken hubs, other broken hardware. Don't bother dealing with drivers at this point - fix USB communication first.
In case your hardware isn't listed, this may be unrelated to your adapter, but a general PCI/USB bus error. This is considered outside the scope of a WiFi issue. Note that some notebooks have integrated WiFi adapters connected to an internal USB port, so it may be listed as USB in such a case.
Bus 001 Device 002: ID 8087:0024 Intel Corp. ...
^^^^-- product ID
^^^^------- vendor ID
$ lspci -nn | grep -i network
04:00.0 Network controller : Intel Corporation [...] [8086:4238] (rev 3e)
vendor ID --^^^^
product ID -------^^^^
Tips in using Google
- Use the numeric product/vendor IDs as identified by the commands issued.
linux as a keyword with it, rather than
- Try using the device's chipset name as listed in the output in the steps of Identifying the exact hardware. Examples:
- Avoid using keywords unrelated to hardware support. E.g. your desktop environment is unrelated, so use
Ubuntu instead of
- Try to be sensitive for 'general' information about your device, rather than focusing on specific solutions, e.g. "Firmware is needed for this device", or reports of users that it worked out-of-the-box in a previous release.
I had no luck with all options. What should I provide in a new question?
Before posting a new question, search this site using keywords from Identifying the exact hardware.
- All relevant (unexpected or errors) output from the options in this answer.
- Relevant output of the steps done in the Identifying the exact hardware section.
- The kernel you're running and the versions you've tried. Use the
uname -r command to identify your kernel version.
- Other Ubuntu versions you've tried.
Things to avoid if possible
Hardware requiring special care
- Broadcom BCM43xx devices. Please refer to this answer for a nice tutorial on getting these devices to work.