Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I used to be able to connect to Free Wireless networks and to my own wireless network, but when I tried to connect to a wired network I did one thing:

Restarted the network-manager in the terminal.

Since then I can't connect the any wireless network and never got to connect/test my wired one (I could not get it to work, that is why I did that).

Could someone help me with this problem, because I can't seem to find any post with this same problem or a good answer.

I tried to edit my wireless connection and deleted it in order to try to connect again but, like I said, the problem is I can't connect to any of them, it isn't a single connection problem.

I used this command: sudo service network-manager restart

I rebooted my laptop several times too. This happened a few days ago

Unfortunatly switching it off and on doesn't affect my wireless strange behaviour, and also tried the wpa_cli command by advise and the output was:

wpa_cli v1.0 Copyright (c) 2004-2012, Jouni Malinen <j@w1.f1> and contributors

This program is free software. You can destribute it and/or modify it under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the BSD license. See README and COPYING for more details.

Could not connect to wpa_supplicant - re-trying

I left the command running about 1h and it didn't finish.

I made the wpa_supplicant.config file and wrote:

network={ ssid="Ubuntu" scan_ssid=1 key_mgmt="WPA-PSK" psk="PASSWORD" }

When I ran the wpa_supplicant -i eth1 -c PATH_TO_CONFIG_FILE the output was:

Line 4: invalid key_mgmt '"WPA-PSK"'

Line 4: no key_mgmt values configured.

Line 6: failed to parse network block.

Failed to read or parse configuration PATH_TO_CONFIG_FILE.

Then I tried to fix the problem by removing the quotes from WPA-PSK and ran the command again.

The output was this:

ioctl[SIOCSIWENCODEEXT]: Invalid argument

ioctl[SIOCSIWENCODEEXT]: Invalid argument

eth1: Trying to associate with 00:14:a4:38:bc:3d (SSID='Ubuntu' freq=2462 MHz)

eth1: Association request to the driver failed

eth1: Associated with 00:00:00:00:00:00

eth1: CTRL-EVENT-DISCONNECTED bssid=00:14:a4:38:bc:3d reason=0

Or this (randomly alternating between them):

ioctl[SIOCSIWENCODEEXT]: Invalid argument

ioctl[SIOCSIWENCODEEXT]: Invalid argument

eth1: Trying to associate with 00:14:a4:38:bc:3d (SSID='Ubuntu' freq=2462 MHz)

eth1: Association request to the driver failed

eth1: Associated with 00:14:a4:38:bc:3d

eth1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect

eth1: CTRL-EVENT-DISCONNECTED bssid=00:14:a4:38:bc:3d reason=0

And there was also this line of code:

WPA: No SSID info found (msg 1 of 4)

It never reached to (msg 4 of 4).

share|improve this question
    
Please add details on which commands you used to restart network manager. Also, have you logged out and logged back in since that or rebooted the computer (I'm asking this for I suspect that the communication between the restarted network-manager and the gui for it might have issues that might be resolved by a relog)? –  soulsource Sep 16 '13 at 12:22
    
I used this: sudo service network-manager restart. I rebooted my laptop several times too. This happened a few days ago. –  rikkinikki5 Sep 16 '13 at 12:27
    
Strange. Imho this should not have any effect. Honestly I don't have a clue what could be the cause. One thing I'd also try would be to switch off and an the wireless switch (or the wireless keyboard combination), if your computer has one. You can also try to play with wpa_supplicant directly. Try to stop networkmanager and tinker with wpa_cli in terminal. It can for instance scan and ls the found networks. –  soulsource Sep 16 '13 at 14:57
    
How do I stop networkmanager safely? (the rest is in the post) Thank you for replying! –  rikkinikki5 Sep 16 '13 at 16:32
    
Ah, wpa_cli might need to have root permissions. You can try to run it with sudo. –  soulsource Sep 16 '13 at 16:39
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.