Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 49777  / 2 Years ago, sun, july 24, 2022, 3:29:32

I am running Ubuntu Server 12.04. I have a wireless USB card. When I begin the boot process I see:



Waiting for network configuration



It turns out that the network never comes up. But once I get to the command line, if I type: ifup wlan0, then I have network access. My /etc/network/interfaces looks like this:



# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto wlan0
iface wlan0 inet dhcp
wpa-ssid xxxxxxx
wpa-psk xxxxxxxx


Looking in my network-interface-wlan0.log shows:



Failed to connect to wpa_supplicant - wpa_ctrl_open: Read-only file system
Failed to bring up wlan0.
Failed to connect to wpa_supplicant - wpa_ctrl_open: Read-only file system
ifdown: interface wlan0 not configured


I've looked at other askubuntu.com questions similar to this, but they don't seem to apply.



How can I get my system to network wirelessly at boot?



Additional information:



I did some poking around. Basically once I login I need to do a:



ifdown wlan0



because I think that ip thinks that is is up, but in /var/run/network the only thing that is 'up' is ifup.lo. Then I do a



'ifup -a'



and then everything works.


More From » 12.04

 Answers
7

Failed to connect to wpa_supplicant - wpa_ctrl_open: Read-only file system




According to your log you 'll need to use wpa_supplicant.



So add something similar to this:



auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf


Contents of /etc/wpa_supplicant.conf :



network={
ssid="ADD-YOUR-SSID-HERE"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="ADD-YOUR-WPA-PASSWORD-HERE"
}

[#38011] Tuesday, July 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
;