Raspberry Pi Asked by Mooshroom14 on November 20, 2021
I am trying to turn on the network option in raspi-config, but when I do, I get this error:
could not communicate with wpa_supplicant
Then I hit enter to continue and I get this message
There was an error running option N2 Wi-Fi
I am running the newest version of Rasbian. I am also using an Edimax usb Wi-Fi adapter through a USB port on my pi.
Had the same problem after installing OMV5 with raspbian desktop version. I then uninstalled OMV5 but this problem arised...
The problem in my case, had to do with dhcpcd service being missing, not being able to get an IP. You can check if it is available with the next command.
pi@rpi:~ $ sudo service --status-all
[ - ] alsa-utils
[ - ] anacron
[ - ] apparmor
[ + ] avahi-daemon
[ + ] bluetooth
[ - ] cgroupfs-mount
[ - ] console-setup.sh
[ + ] cron
[ + ] cups
[ + ] cups-browsed
[ + ] dbus
[ + ] dhcpcd
[ + ] docker
[ + ] dphys-swapfile
[ + ] fake-hwclock
[ - ] fio
[ - ] hwclock.sh
[ - ] keyboard-setup.sh
[ + ] kmod
[ + ] lightdm
[ - ] mdadm
[ - ] mdadm-waitidle
[ + ] monit
[ + ] networking
[ - ] nfs-common
[ + ] nginx
[ - ] paxctld
[ - ] plymouth
[ - ] plymouth-log
[ - ] postfix
[ - ] pppd-dns
[ + ] procps
[ - ] quota
[ - ] quotarpc
[ + ] raspi-config
[ ? ] rng-tools
[ - ] rpcbind
[ - ] rsync
[ + ] rsyslog
[ - ] saned
[ + ] ssh
[ - ] sudo
[ + ] triggerhappy
[ + ] udev
[ - ] udhcpd
[ + ] watchdog
[ - ] wd_keepalive
[ - ] x11-common
[ + ] zerotier-one
Then, I configured my raspberry with a static IP to have network connectivity. Assuming you are using WIFI interface and you have a valid confguration on /etc/wpa_supplicant/wpa_supplicant.con:
sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -d -iwlan0
sudo ifconfig wlan0 192.168.1.143 netmask 255.255.255.0
sudo route add default gw 192.168.1.1 wlan0
sudo echo nameserver 8.8.8.8 > /etc/resolv.conf
You can also use eth0 interface and skip wpa_supplicant step.
And finally, I installed dhcpcd
sudo apt-get install dhcpcd5
After I reboot the rpi, Wifi manager plugin and raspi-config worked again.
Check also these links:
https://stevessmarthomeguide.com/configuring-networking-raspberry-pi/ How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS? https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md https://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/
Answered by davidtgbe on November 20, 2021
Try run wpa_supplicant interactively:
sudo killall wpa_supplicant
sudo wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -d -iwlan0
This will provide a lot of diagnostic logging; in my case (using a USB Wifi dongle), "Driver does not support authentication/association or connect commands". Once I downloaded the off-kernel driver, wpa_supplicant worked fine and so did raspi-config's N2 configuration.
Answered by Hendré Wassermann on November 20, 2021
You are using a Raspberry Pi 2B. This model does not have an on-board WiFi device so it does not make sense to enable WiFi with raspi-config. It seems this results in the error message you reported.
Answered by Ingo on November 20, 2021
Question
How to use Raspbian version 2019 April to config WiFi for Rpi 2B?
Answer
Introduction
The OP has a Rpi2B with a WiFi dongle. He has a problem configing Wifi. This answer has two parts:
Install Raspbian on 3B+ and config Wifi.
Use the same SD card to config the 2B.
Setting up Rpi2B with a Wifi Dongle
Preparing a micro SD card with Raspbian stretch 2018apr image for Rpi2B and Wifi Dongle
Checking out if Rpi2B Raspbian stretch 2019apr can detect TP-LINK TL-WN727N
I found the setup can detect the TP-LINK Wifi dongle. I remember I needed to google a list of dongles that Rpi can detect. So I would suggest you to check that out by the command lsusb. If you can detect the dongle, then you are almost there! :)
Entering Wifi SSID and password at desktop
setting up Wifi in desktop is even easier. The steps are listed below.
Select your Wifi country (otherwise top right network icon won't work).
At top right corner, click the double red cross icon (Wifi and Ethernet).
Select to turn on your network in the list (my network name is tlfong01).
Enter password (pre shared key).
That is all.
Good luck.
/ to continue, ...
The paragraphs below are out of date and need to be modified and/or deleted, after I have completed the answer above.
Let me see.
I am using Rpi3B+ and Raspbian 2019apr.
When you are configuring WiFi under terminal mode, you should have gone through the last couple of steps as shown below:
You must enter the correct ssid and passphrase, otherwise you will get the N2 Wi-fi error message.
The "ssid" and "passphrase" should be the same for your other WiFi devices, such as your mobile phone. You might like to try your ssid and passphrase with your mobile phone first, to make sure they are OK.
And perhaps you forgot to switch on your router? :)
Answered by tlfong01 on November 20, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP