void-mklive
void-mklive copied to clipboard
void-installer: DHCP request failed for WPA2-encrypted Wi-Fi network
uname -a: Linux void-live 4.12.13_1 #1 SMP PREEMPT Thu Sep 14 13:15:00 URC 2017 x86_64 GNU/Linux
Affected program: void-installer 0.22 b4804a8
On the latest live image, the void-installer utility fails to connect to my local WPA2-encrypted Wi-Fi network. It works after restarting dhcpcd.
Steps to reproduce this issue
- run
sudo void-installer - select "Network"
- select the Wi-Fi interface (wlp1s0)
- enter the details (SSID = ..., encryption = "wpa", Password = ...)
- the following error message is shown: "ERROR: DHCP request failed for wlp1s0. Check /dev/tty8 for errors."
- check tty8, only message is: "sending commands to master dhcpcd process"
- select "Exit"
- run
sudo sv restart dhcpcd - repeat steps 1–4
- the following message is shown: "Network is working properly!"
Same syntoms. The problem for me is that my wifi password contains spaces and only the first word is read from the text box when generating the wpa_supplicant config.
i have the same problem and the suggested solution does not work after local install however all you have to do is start wpa_supplicant and everything works... can't get it to work during installation however
It seems like the installer was never adapted to the dhcpcd wpa_supplicant hook being disabled (https://voidlinux.org/news/2019/01/dhcpcd-7.1.0.html).
I would recommend that:
- the vmklive dracut file be modified to enable wpa_supplicant when dhcpcd is in use
- the installer be modified to:
- configure the network using the general config file (
/etc/wpa_supplicant/wpa_supplicant.conf) - reload the running wpa_supplicant
- remove the wpa_supplicant bits from the dhcpcd invocation
- configure the network using the general config file (
Still doesn't work on the latest ISO. I have enabled wpa_supplicant service with ln -s /etc/sv/wpa_supplicant /etc/runit/runsvdir/default/ before running void-installer but nothing changed.
+1 I also have this issue. It seems nobody cares to fix this.
my solution : execute
wpa_passphrase <MYSSID> <passphrase> >> /etc/wpa_supplicant/wpa_supplicant-<device_name>.conf
(you can learn your device name by executing ip a)
then run
ln -s /etc/sv/wpa_supplicant /var/service/
then start the void installer
Bug still exists.
I had to unblock the wifi with rfkill first. After that, everything worked.
rfkill unblock wlan
I had to unblock the wifi with
rfkillfirst. After that, everything worked.rfkill unblock wlan
I had to do that once too... Seems nobody cares about wifi/wireless things on these minimal distros. Also seems they test only internet directly on ethernet cable before launch new distros versions. I am not speaking only about Void here. I had these problems even in distros such as Alpine, Adelie and AntiX.
The truth is: already passed the time to replace wpa_supplicant and NetworkManager sh1ts to newer and less RAM consuming softwares (like nm-applet is a RAM cancer). Very old and bloated softwares, sometimes with unexpected behavior and not easy/fast to configure.
Same here
Why does this issue still exist?
low priority and high effort in duplication and iteration.
Why does this issue still exist?
lemme guess... because there still people that have this problem?
Why does this issue still exist?
lemme guess... because there still people that have this problem?
I meant to ask why hasn't this issue been fixed yet? I mean it's been like 3 years since this issue first appeared.
@Shulkk I proposed a fix in #156 but nobody has tested it. Could you build an image using that branch and test it?
my solution : execute
wpa_passphrase <MYSSID> <passphrase> >> /etc/wpa_supplicant/wpa_supplicant-<device_name>.conf(you can learn your device name by executing
ip a) then runln -s /etc/sv/wpa_supplicant /var/service/then start the void installer
A few more steps was needed for this to work in my case. My network adapter is called wlp3s0.
ln -s /etc/sv/wpa_supplicant /etc/runit/runsvdir/default
This will start the service. To see any error messages:
wpa_cli -i wlp3s0
If you don't see any errors running this command, your network is probably ok, and you can run the void installer agian.
my solution : execute
wpa_passphrase <MYSSID> <passphrase> >> /etc/wpa_supplicant/wpa_supplicant-<device_name>.conf(you can learn your device name by executing
ip a) then runln -s /etc/sv/wpa_supplicant /var/service/then start the void installer
A few more steps was needed for this to work in my case. My network adapter is called wlp3s0.
ln -s /etc/sv/wpa_supplicant /etc/runit/runsvdir/default
This will start the service. To see any error messages:
wpa_cli -i wlp3s0
If you don't see any errors running this command, your network is probably ok, and you can run the void installer agian.
Whattttttttttt, they haven't resolved this yet? half of 2022?
Please someone tag void devs here, this is an easy issue to solve, just adding commands to the installer...
PR welcome
@Vaelatern I made a PR and linked it from this ticket. Testers welcome.
This solution did not work for me at the begainning so i did that:
ip -c awpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.confSuccessfully initialized wpa_supplicant
wpa_cliadd_network
0
set_network 0 ssid "hidden_ssid"set_network 0 psk "password"set_network 0 scan_ssid 1CONNECT TO HIDDEN SSID
enable_network 0save_configselect_network 0
Then i just realised that issue happened because of "hidden wifi" so this solution works but you have to add scan_ssid=1 inside network block before ln -s /etc/.....
my solution : execute
wpa_passphrase <MYSSID> <passphrase> >> /etc/wpa_supplicant/wpa_supplicant-<device_name>.conf(you can learn your device name by executing
ip a) then runln -s /etc/sv/wpa_supplicant /var/service/then start the void installer
This is how I fixed the problem during my void-musl installation.
Before launching void-installer
rfkill unblock wlan
Next, enable the wpa_supplicant service
ln -s /etc/sv/wpa_supplicant /var/service
Next cd to where the config file for your network is located
cd /etc/wpa_supplicant/
Run an ls to see the names of the config files in this directory
The one we are interested in is the one with wlp2s0 in its name
Open it
vi wpa_supplicant-wlp2s0.conf
// in vi
Write the following, or edit it if there's some text already
# my home network
network={ ssid="[network-name]" psk="[your-strong-password]" scan_ssid=1 key_mgmt=WPA-PSK }
You can add more than one network to this file. Just add another network block.
Exit vi
:wq
Then restart wpa_supplicant
sv restart wpa_supplicant
Wait for a few seconds
ping github to see if you have an internet connection
ping www.github.com
Now you can start the
void-installer
Do I need to make a fresh live iso in order to benefit from this fix? This issue is not resolved when using the latest iso from the Void homepage.
yes, until the new iso is released
Happy to find that this issue has been fixed, nearly a year later :)
4 years actually 🙂
I really can't believe there's been 6 years and this problem still persists.
then make a new issue with more info