wifi-connect icon indicating copy to clipboard operation
wifi-connect copied to clipboard

Cannot find a wifi device on Rasberry pi 3.

Open arsalyou opened this issue 3 years ago • 1 comments

I am getting this error after running sudo wifi-connect. I was connected to wifi before running bash <(curl -L https://github.com/balena-io/wifi-connect/raw/master/scripts/raspbian-install.sh). During execution, wifi got disconnected and now I get "No wireless LAN interfaces found"

arsalyou avatar Mar 08 '21 15:03 arsalyou

I've just got the same issue with a Raspberry Pi Zero W, connected with ssh, running the same command:

pi@raspberrypi:/tmp $ bash <(curl -L https://github.com/balena-io/wifi-connect/raw/master/scripts/raspbian-install.sh)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   157  100   157    0     0    518      0 --:--:-- --:--:-- --:--:--   519
100  4624  100  4624    0     0   7281      0 --:--:-- --:--:-- --:--:-- 70060
WiFi Connect Raspbian Installer: Retrieving latest release from https://api.github.com/repos/balena-io/wifi-connect/releases/latest...
WiFi Connect Raspbian Installer: Downloading and extracting https://github.com/balena-io/wifi-connect/releases/download/v4.4.4/wifi-connect-v4.4.4-linux-rpi.tar.gz...
WiFi Connect Raspbian Installer: Successfully installed wifi-connect 4.4.4
WiFi Connect Raspbian Installer: NetworkManager is not installed
WiFi Connect Raspbian Installer: Continue to install NetworkManager and disable dhcpcd? [y/N] y
WiFi Connect Raspbian Installer: Downloading NetworkManager...
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.8 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]               
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [364 kB]         
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]                                                                                                       
Fetched 13.5 MB in 37s (362 kB/s)                                                                                                                                                            
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dns-root-data dnsmasq-base libbluetooth3 libcurl3-gnutls libjansson4 libmbim-glib4 libmbim-proxy libmm-glib0 libndp0 libnm0 libpcap0.8 libqmi-glib5 libqmi-proxy libteamdctl0 modemmanager
  ppp
Suggested packages:
  libteam-utils
The following NEW packages will be installed:
  dns-root-data dnsmasq-base libbluetooth3 libcurl3-gnutls libjansson4 libmbim-glib4 libmbim-proxy libmm-glib0 libndp0 libnm0 libpcap0.8 libqmi-glib5 libqmi-proxy libteamdctl0 modemmanager
  network-manager ppp
0 upgraded, 17 newly installed, 0 to remove and 50 not upgraded.
Need to get 6642 kB of archives.
After this operation, 22.8 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main armhf libbluetooth3 armhf 5.50-1.2~deb10u1+rpt2 [93.5 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main armhf dnsmasq-base armhf 2.80-1+rpt1+deb10u1 [400 kB]
Get:2 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libcurl3-gnutls armhf 7.64.0-4+deb10u1 [292 kB]              
Get:4 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libjansson4 armhf 2.12-1 [34.6 kB]                           
Get:5 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libmm-glib0 armhf 1.10.0-1 [903 kB]
Get:7 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libnm0 armhf 1.14.6-2+deb10u1 [295 kB]                           
Get:6 http://mirror.vnet.sk/raspbian/raspbian buster/main armhf libndp0 armhf 1.6-1 [9328 B]                    
Get:9 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf network-manager armhf 1.14.6-2+deb10u1 [2136 kB]
Get:8 http://mirror.vnet.sk/raspbian/raspbian buster/main armhf libteamdctl0 armhf 1.28-1 [10.1 kB]
Get:10 http://mirror.vnet.sk/raspbian/raspbian buster/main armhf dns-root-data all 2019031302 [5396 B]
Get:11 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libmbim-glib4 armhf 1.18.0-1 [142 kB]
Get:15 http://mirror.vnet.sk/raspbian/raspbian buster/main armhf libqmi-proxy armhf 1.22.0-1.2 [9032 B]
Get:12 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libmbim-proxy armhf 1.18.0-1 [70.7 kB]
Get:13 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libpcap0.8 armhf 1.8.1-6 [124 kB]
Get:14 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf libqmi-glib5 armhf 1.22.0-1.2 [443 kB]
Get:16 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf modemmanager armhf 1.10.0-1 [1363 kB]
Get:17 http://mirror.wheel.sk/raspbian/raspbian buster/main armhf ppp armhf 2.4.7-2+4.1+deb10u1 [312 kB]
Fetched 6642 kB in 4s (1759 kB/s)
Download complete and in download only mode
WiFi Connect Raspbian Installer: Deactivating and disabling dhcpcd...
Warning: The unit file, source configuration file or drop-ins of dhcpcd.service changed on disk. Run 'systemctl daemon-reload' to reload units.

At this point, the RPi was disconnected. When I rebooted it, it didn't connect to the wifi although still having correct settings in /etc/wpa_supplicant/wpa_supplicant.conf.

When I connected a display and keyboard to the RPi, I was able to connect to wifi using the Network Manager:

  • List nearby Wi-Fi networks:
    nmcli device wifi list
    
  • Connect to a Wi-Fi network:
    nmcli device wifi connect SSID_or_BSSID password password
    
  • Here is a more detailed info on nmcli

michalfapso avatar Mar 09 '21 23:03 michalfapso