Ubuntu 12.10 - network manager not listing wireless networks

Solution 1:

Do the command:

sudo gedit /etc/NetworkManager/NetworkManager.conf

This will open up that file in a text editor. Change the line that has managed= to:

managed=true

Save and close the file, then do:

sudo killall NetworkManager 

Logout and log back in again.

Solution 2:

In my case, after I followed the other answer, I saw that it now showed device not ready after a reboot.

Here's what I did to fix that:

sudo gedit /etc/network/interfaces and I got a file containing this:

#This file describes the network interfaces available on your system
#and how to activate them. For more information, see interfaces(5).

#The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto wlan0
iface wlan0 inet dhcp
        wpa-ssid Wifi Name
        wpa-psk  Wifi Pasword

I deleted everything below # The primary network interface and after a reboot I had wireless networks available again.