SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've seen posts revolving around this issue on many different forums but none really have given and answer to the problem that i've seen thus far. so I'm trying to connect to a wireless network with WPA/WPA2 encryption. Every time WICD gets to the point where it searches for a DHCP server but cannot aquire an IP address. This only happens if the network is encrypted though. If I take the encryption of the network I can connect no problem. Looking in the wicd.log file I find a few errors that I have searched for but cannot find any answers.
2011/01/16 15:19:37 :: Connecting to wireless network The_Welchs_Media
2011/01/16 15:19:37 :: Running command ['wpa_cli', '-i', 'wlan0', 'terminate'] failed: [Errno 2] No such file or directory
2011/01/16 15:19:37 :: Putting interface down
2011/01/16 15:19:37 :: Releasing DHCP leases...
2011/01/16 15:19:37 :: Setting false IP...
2011/01/16 15:19:38 :: Stopping wpa_supplicant
2011/01/16 15:19:38 :: Running command ['wpa_cli', '-i', 'wlan0', 'terminate'] failed: [Errno 2] No such file or directory
2011/01/16 15:19:38 :: Flushing the routing table...
2011/01/16 15:19:38 :: Putting interface up...
2011/01/16 15:19:40 :: Generating psk...
2011/01/16 15:19:40 :: WARNING: PSK generation failed! Falling back to wireless key.
2011/01/16 15:19:40 :: Please report this error to the wicd developers!
2011/01/16 15:19:40 :: Attempting to authenticate...
2011/01/16 15:19:40 :: Running command ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/c0c1c005be0d', '-D', dbus.String(u'', variant_level=1)] failed: [Errno 2] No such file or directory
2011/01/16 15:19:40 :: Running DHCP with hostname Welchumaballs
2011/01/16 15:19:40 :: dhcpcd: version 5.2.2 starting
2011/01/16 15:19:40 ::
2011/01/16 15:19:40 :: dhcpcd: wlan0: waiting for carrier
2011/01/16 15:19:40 ::
2011/01/16 15:20:10 :: dhcpcd: timed out
2011/01/16 15:20:10 ::
2011/01/16 15:20:10 :: DHCP connection failed
2011/01/16 15:20:10 :: exiting connection thread
2011/01/16 15:20:10 :: Sending connection attempt result dhcp_failed
2011/01/16 15:20:10 :: Running command ['wpa_cli', '-i', 'wlan0', 'terminate'] failed: [Errno 2] No such file or directory
I'm kind of lost as to why I'm getting the no such file or directory outputs along with the PSK generation failure. Can someone please point me in the right direction!
...
2011/01/16 15:19:38 :: Stopping wpa_supplicant
...
2011/01/16 15:19:40 :: Running command ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/c0c1c005be0d', '-D', dbus.String(u'', variant_level=1)] failed: [Errno 2] No such file or directory
I think there is no question that this has something to do with wpa_supplicant. That is the component that provides encryption. The only question is what exactly is the problem.
The 'no such file or directory' makes me wonder if wpa_supplicant exists. If it does exist then maybe there is another file that it needs and that is missing.
The first message above, stopping wpa_supplicant, makes me think that wpa_supplicant might exist. Therefore it may be missing some file on which it depends.
Sometimes a given wpa_supplicant binary only works on one specific chip set. Maybe you have the wrong build of wpa_supplicant.
I think stress junkie is right, it has to do with wpa_supplicant. Did you configure wpa_supplicant.conf?
As far as I know wicd is not able to connect to WPA2 encrypted networks without wpa_supplicant. Otherwise one does not need Wicd. So I'd suggest to disable wicd, check the wpa_supplicant.conf and try on the commandline as root
If you have a Slackware full installation, the wpa_supplicant.conf should be there. You may post the errormessages if you tried wpa_supplicant on the commandline. If wpa_supplicant on the commandline connected to you accesspoint, you may use
Code:
dhcpd wlan0
in order to get a lease.
If you don't get it, please provide more information about your hardware.
As long as wpa_supplicat is installed, wicd should connect to any wpa2 connection. No configuration needed except putting in the passphrase in wicd. I would try reinstalling the wpa_supplicant package and try again. I would also clear out /var/lib/wicd just to make sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.