11

When I use NetworkManager command tool to scan for wireless networks the output is empty.

root@radxa:~# nmcli dev wifi list
SSID    BSSID   MODE    FREQ    RATE    SIGNAL  SECURITY    ACTIVE
root@radxa:~#

but if use iwlist, the scan is ok:

root@radxa:~# iwlist wlan0 scan
          Cell 01 - Address: 78:A1:06:7F:CF:C9
                    ESSID:"olivia"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:300 Mb/s
                    IE: WPA Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK 
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    Quality=0/100  Signal level=7/100

device status:

root@radxa:~# nmcli device status
DEVICE     TYPE              STATE
wlan0      802-11-wireless   unavailable
eth0       802-3-ethernet    connected

but if use nmcli connect is error:

root@radxa:~# nmcli device wifi connect "olivia" password "makeit458"
Error: No network with SSID 'olivia' found.

Linux version:

Linux version 3.0.36+ (build@radxa-x1) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) 
#6 SMP PREEMPT Tue Aug 19 15:17:11 CST 2014
  • Why use wifi and list? According to the man page it is you should use one of those commands (nmcli just takes the first of those two) – Anthon Sep 30 '14 at 3:33
  • 1
    but if use nmcli connect is error root@radxa:~# nmcli device wifi connect olivia password makeit458 Error: No network with SSID 'olivia' found. – guanghai lu Oct 8 '14 at 1:47
  • I had same issue after I installed network-manager. I removed it and got wifi working again. – Grzegorz Wierzowiecki Mar 21 '16 at 20:21
  • Possible Solution: askubuntu.com/a/921392/427233 – David Refoua Nov 29 '17 at 22:33
2

I finally found the problem, wpa_supplicant was not running.

Try this:

sudo systemctl start wpa_supplicant.service

Now check the wifi list again:

nmcli dev wifi list 

Connect to the network like this:

nmcli --ask connection up <ssid>
  • 1
    to me not work. I see unavailable wlan0 – giuseppe Oct 3 '17 at 16:51
  • This didn't work for me, instead the following link worked: askubuntu.com/a/921392/427233 – David Refoua Nov 29 '17 at 22:33
  • You should use sudo nmcli --ask dev wifi connect ssid-goes-here instead of the last command. – Denys Vitali Dec 28 '17 at 20:17
  • @DenysVitali Why? – tsbertalan Nov 9 '18 at 20:16
0

What worked for me was removing the reference to the wifi device from any of the /etc/network/interfaces configurations.

e.g. I had a file in /etc/network/interfaces.d/something.conf that contained

auto wlx0012456789
iface wlx... inet dhcp

(this is probably wlan0 for many users, instead of the wlx... interface I have).

Removing (or commenting out with a #) and restarting the network manager service (sudo systemctl restart network-manager.service) worked a treat.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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