How to fix "ndiswrapper not found"?

96,294

Solution 1

This bug is reported here. I managed to workaround it so I thought I could share the fix so others can benefit and perhaps contribute more accurate information. Information source is soneedu commnent and Ubuntu Wiki.


Update: There is another fix suggestion which seems way more easy to do, and it was confirmed in the comments that it works.

Fix suggestion #1:

  1. Install the package ndiswrapper-dkms
  2. Run the command: sudo modprobe ndiswrapper

Now you should be able to use the Windows Wireless Network Drivers (ndisgtk) utility.

Don't forget to make sure that ndiswrapper is being loaded on system startup.


Fix suggestion #2:

Tested on Ubuntu 12.04 32 bit.

Go to Ubuntu Software Center, search for ndisgtk and open its entry. Install it in case you haven't yet. Check the add-on Source for the ndiswrapper Linux kernel module (ndiswrapper-source) and click "Apply Changes".

Now there must be a file called ndiswrapper.tar.bz2 in /usr/src. Open a terminal and go to the directory:

cd /usr/src

Extract the file:

sudo tar -xjf ndiswrapper.tar.bz2

Go the the extracted directory:

cd /usr/src/modules/ndiswrapper

Compile and install:

sudo make
sudo make install

Add the module to the system:

sudo modprobe ndiswrapper

Open the file:

gksudo gedit /etc/modprobe.d/ndiswrapper.conf

Delete the content of the file, save and close. Then let the module write the configuration file again:

sudo ndiswrapper -m

Reboot.

Now you should be able to use the Windows Wireless Network Drivers (ndisgtk) utility.

Don't forget to make sure that ndiswrapper is being loaded on system startup.

Solution 2

This same problem just started happening for me a couple days ago and in my search to fix it, I found a post this morning on ubuntuforums.org with an alternative fix. Since I haven't seen any mention of this method yet here, I figured i go ahead and post it for everyone else.


Here's HalfNote5's original post:

Since I lack enough reputation to post the screenshot here, I've went ahead and copied the text instead.

12.04 and ndiswrapper modprode "FATAL: Module ndiswrapper not found"

Just a heads up for people with ndiswrapper problems (I crawled the Ubuntu forum and didn't really find this; the info was aggregated from several other sites.)

If you're using an older version of ndiswrapper, and you have the gui AND the program interface (and ndiswrapper even shows that the hardware is attached) but when you modprobe, you're getting this:

FATAL: Module ndiswrapper not found

It means you need to install

ndiswrapper-source
ndiswrapper-dkms
ndiswrapper-common

(And of course, install ndiswrapper-utils-1.9)

None of which appear to be "Dependencies" for ndiswrapper, but without which it simply does not work.

Apologies if this is already posted somewhere, but when I was looking for it, I saw several people asking, but no definitive answers.

Cheers!

P.S. My install was Xubuntu Alternate. Your experience may vary. ; )

Last edited by HalfNote5; May 26th, 2012 at 09:13 AM.. Reason: slight correction

Link to HalfNote5's Original Post


Since I use Ubuntu 12.04 LTS as my OS, I just searched each installs name in the Ubuntu Software Center program and installed each one.

After everything finished installing, I reopened ndiswrapper, then removed and reinstalled the wireless driver.

Ever since then, my wireless adapter has working perfectly.

I hope my answer helps make this fix easier, even if just a little, for others with this same problem in the future.

Solution 3

Thanks to whoever posted it. It took me almost a day to get my WiFi working in my old laptop with broadcom PCI wlan. I used ndiswrapper by directly downloading it but it didn't work for me. I tried to install it by compiling the soruce code but I got into a compilation error where it said error: ‘struct kernel_stat’ has no member named ‘cpustat.

Then I searched and I found that I have to install ndiswrapper-1.58 source. I dowloaded the source and followed the following instructions after unpacking the archive and changing to the source directory.

sudo make
sudo make install
sudo modprobe ndiswrapper
gksudo gedit /etc/modprobe.d/ndiswrapper.conf
<< delete all the entries here. it will re create it>>
sudo ndiswrapper -m
lsmod | grep ndiswrapper
<<it should list your module>>
gksu gedit /etc/modules
<< add *ndiswrapper* to the end of this file>>
sudo reboot

Now your WiFi should be up and running.

Share:
96,294
ImVishal
Author by

ImVishal

Updated on September 18, 2022

Comments

  • ImVishal
    ImVishal over 1 year

    I've been using ndiswrapper to make work some wireless cards using its Windows drivers, because they are not yet supported by free Linux drivers. Until Ubuntu 12.04.

    Now, I can install Windows Wireless Network Drivers (ndisgtk) from Ubuntu Software Center but when I try to load the driver, I get an error message saying

    FATAL: Module ndiswrapper not found.
    

    I get the same error if I type on a terminal sudo modprobe ndiswrapper.

    How can I workaround this bug until it's fixed?

    • nilsonneto
      nilsonneto almost 12 years
      I'm curious - what wireless card is not being recognised by the new linux kernel? NDISWrapper should be the last resort for wireless issues.
    • Thibault
      Thibault almost 12 years
      @fossfreedom For me, it's not a wireless card, but rather a USB Wireless device (Netgear N300 WNA3100).
  • Admin
    Admin almost 12 years
    re: the updated, easier fix suggestion: As with those in the bug thread, I can confirm that, after researching and hairpulling for about 18 hours (!) going to Synaptic Package Manager and installing ndiswrapper-dkms then entering sudo modprobe ndiswrapper in a terminal, me and my Netgear WG121 are once again on the air. Thanks for the link!
  • ImVishal
    ImVishal almost 12 years
    Thanks for confirming the fix. I updated my answer to include the 'modprobe' command.
  • Joël
    Joël about 11 years
    Hi, for information, this is not working under 12.10, as there is a problem with version 1.57 of the sources. See askubuntu.com/questions/213360/… for 12.10 correction.
  • David Foerster
    David Foerster over 7 years
    If you want to improve another answer, please suggest an edit to it and don’t create a new (incomplete) answer.