How to fix wicd 1.7.0+ds1-5 Connection Failed: Bad Password on Ubuntu 10.10 (Maverick Merkaaat)

Tuesday, 3rd May 2011

Reading Time: < 1minute
I’ve been struggling with fixing a nasty error with wicd network manager for about 2 hours.
The exact error message I faced was:

Connection Failed: Bad Password

The issue occured after some suggested updates from the Ubuntu graphical update tool.
The wireless network to which it was connected was a WPA-PSK (WPA2) Passphrase authentication.
The network key was properly typed in and was working well on another system so the error Connection Failed: Bad Password made no sense.

There was nothing unusual in /var/log/wicd/wicd.log , that made me even more curious about what might be causing the error.After a lot of try outs and a lot of readings and tests I finally got the cause of the weird Bad Password errors produced by wicd

Weirdly enought, somehow the Ubuntu package update tool has installed the default gnomenetwork-manager package.
The installed network-manager package has mismatched somehow the way wicd connects to wireless networks and as a cause the wpa_supplicant binary was not properly invoked.

As a consequence of the network-manager being present on the system the wpa_supplicant process which made the exact connection to the wireless network was not launching in, the exact wpa_supplicant invocation missing was:

wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/0022b0aa424a -D wext

Luckily the solution to the notebook wireless device unable to connect to the Wireless network was simple.

All I had to do is completely remove all occurance of network-manager packages installed on the Ubuntu system, by issuing the commands:

ubuntu:~# apt-get remove --yes network-manager
ubuntu:~# dpkg --purge network-manager-pptp-gnome network-manager-pptp network-manager

The reason for issuing the a dpkg –purge command was my desire to completely get rid of all kind of network-manager related configurations.

Now after re-connecting with wicd wireless manager, it worked fine 😉

Share this on:

Download PDFDownload PDF

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

17 Responses to “How to fix wicd 1.7.0+ds1-5 Connection Failed: Bad Password on Ubuntu 10.10 (Maverick Merkaaat)”

  1. Eugenesays:
    Google Chrome 13.0.782.218 Google Chrome 13.0.782.218 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1

    Thank you so much! I’ve been trying for awhile to get my wireless working again.

    View CommentView Comment
  2. Bobsays:
    Firefox 3.6.23 Firefox 3.6.23 Linux Mint 9 Linux Mint 9
    Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110921 Linux Mint/9 (Isadora) Firefox/3.6.23

    wicd is SO much better than the Gnome network manager. Many thanks for showing me how to get it working.

    View CommentView Comment
    • adminsays:
      Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
      Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

      Hi Bob,

      Yep wicd is a way, ahead. Let’s hope it will get better and better 😉

      Wish you Best!

      View CommentView Comment
  3. Vitor Morgadosays:
    Firefox 8.0 Firefox 8.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0

    It was related with network manager but that’s because wpa suplicant is being used more than once at same time.

    I’ll explain:

    First time when i got this error i digged all the foruns, all was pointing to be a problem with network-manager. It’s almost correct! What was happening was, as you said, wicd and n-man were both using wpa supplicant at same time. Well i never had any network manager on my dist, wicd was the default.

    I looked at this:
    “wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/0022b0aa424a -D wext”

    it wasn’t really genuine, but i realised that wicd was loading all configuration files from /var/liv/wicd/configurations ( were 3 in my case ) and that would explain why i was able to connect sometimes after reboot and others don’t ( “loading lag”) and also why if i suspended or the connection died i couldn’t connect again.

    This also explains why people with fresh install could resolve the connection problem after deleting network manager and those who had upgraded wicd couldn’t. ( old config being loaded ).

    SOLUTION (plz update your post as it is very good and the reason i found this :P):

    Delete all those configs!

    Atleast worked for me and makes sence. Try and gimme some feedback.

    Peace and Love.

    View CommentView Comment
    • Gregsays:
      SRWare Iron 14.0.850.0 SRWare Iron 14.0.850.0 Windows 7 Windows 7
      Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Iron/14.0.850.0 Chrome/14.0.850.0 Safari/535.1

      Vitor, I tried your method, deleted all config files, rebooted, but wicd still says bad password.

      I noticed that whenever a new wireless connection is established wicd creates a new config for that one.

      Still struggling to figure out the root problem.

      View CommentView Comment
  4. Vitor Morgadosays:
    Firefox 8.0 Firefox 8.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0

    makes sense*

    View CommentView Comment
  5. hakizasays:
    Google Chrome 17.0.963.33 Google Chrome 17.0.963.33 GNU/Linux GNU/Linux
    Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.33 Safari/535.11

    Thanks a lot!!

    View CommentView Comment
  6. bhanusays:
    Firefox 13.0.1 Firefox 13.0.1 Ubuntu Ubuntu
    Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1

    This approach worked for me!

    Saved lot of work. Thanks!

    View CommentView Comment
  7. Darrensays:
    Firefox 16.0 Firefox 16.0 Ubuntu x64 Ubuntu x64
    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0

    Thanks. Worked for me too.

    View CommentView Comment
  8. aimz_estsays:
    Firefox 16.0 Firefox 16.0 Windows 7 Windows 7
    Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121030 Firefox/16.0

    Worked in crunchbang!

    View CommentView Comment
  9. Mattsays:
    Firefox 24.0 Firefox 24.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0

    Thank you so much! Worked great!

    View CommentView Comment
  10. Samsays:
    Google Chrome 31.0.1650.57 Google Chrome 31.0.1650.57 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

    Hi, didnt work for me. I'm using BT5R3 in Virtualbox. I applied the commands you served above, but it says that i havent got network-manager installed. And i still get the message "Bad Password. 
    I'm using a Usb-Network-Stick for the connection and got the following settings in VirtualBox:
    Connected with: NAT
    Adapter-type: Paravirtualnetwork (virtio-net)

    Please help 🙁

    My USB-Stick is: Netgear wnda4100 n900
    i already installed the stick into BT5R3 by installing the chipset RT3573STA

    View CommentView Comment
    • adminsays:
      Firefox 25.0 Firefox 25.0 Windows 7 x64 Edition Windows 7 x64 Edition
      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0

      Hi does all commands execute with no errors? I guess maybe in command
      wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/0022b0aa424a -D wext

      you need to change /var/lib/wicd/configurations/0022b0aa424a with your custom config?

      View CommentView Comment
  11. Allan Koschdoskisays:
    Firefox 28.0 Firefox 28.0 Ubuntu Ubuntu
    Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0

    Thank you!!!! Worked fine to me!

    View CommentView Comment
  12. Yo Mismosays:
    Chromium 41.0.2272.76 Chromium 41.0.2272.76 Ubuntu Ubuntu
    Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36

    Thank you!

    View CommentView Comment

Leave a Reply

CommentLuv badge