Solution 1:

I just tried this:

shell> sudo rfkill list all

The output was something like this:

0: sony-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: sony-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: yes
4: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

Then I have run this command:

shell> sudo rfkill unblock wifi

and all is fine now :) Have fun :) I hope it will help you :)

Solution 2:

To explicitly check your wireless is turn off by hardware switch or not, you can use

sudo rfkill list all

Then you can use this command to unblock every blocked component there:

sudo rfkill unblock all

Solution 3:

This thread came up tops in search but was not marked SOLVED so I'll post what worked for me.

Most driver and configuration bugs have been worked out, hence methods to remove or override stubborn hardware locks don't work and lead only to frustration.

The first step should be to locate the wifi/wlan switch and toggle it. It may be a function key, slider switch or other. If unsure of its location, head to the mfr's website and search the manual.

Those who, like me, leave WIFI on all the time are most susceptible to this trouble. We don't use the switch so we're not mindful of it.

After wasting hours searching and trying many suggestions like others here, I finally reviewed the documentation and found the tiny switch that had been accidentally toggled. Toggled it back and everything started working again.

Solution 4:

I think this is just a new manifestation of an old problem that affects Vaio laptops. I have one too, ran into the same problem with 12.04 (beta 2), and had success using the same solution I used with Ubuntu 11.*:

sudo rmmod acer_wmi
sudo rfkill unblock wifi

Let me know if that works for you. I think Ubuntu gets confused by having both "sony-wifi" and "acer-wireless" (which you can see in the previous answers "sudo rfkill list all"), and the rmmod will clear the "acer-wireless" option.

A more permanent version of this solution, suggested on this thread http://ubuntuforums.org/archive/index.php/t-1859633.html, is to just blacklist it by adding

blacklist acer_wmi

to

/etc/modprobe.d/blacklist.conf

and then restarting your system.