2

I have Ubuntu 12.10 and whenever I run sudo modprobe ndiswrapper, I get the following error.

FATAL: Module ndiswrapper not found.

The command dkms status returns with...

ndiswrapper, 1.57, 3.2.0-32-generic, i686: installed

When I run ndiswrapper -v I am returned with this...

jason@jason:~$ ndiswrapper -v
utils version: '1.9', utils version needed by module: '1.9'
module details:
filename:       /lib/modules/3.5.0-18-generic/updates/dkms/ndiswrapper.ko
version:        1.58rc1
vermagic:       3.5.0-18-generic SMP mod_unload modversions 686 

I have installed commons, utils-1.9, dkms, source but it's still returning this error. How do I fix this?

thank_you
  • 667
  • 5
  • 11
  • 18

6 Answers6

1

Based on what you have installed, this may seem silly, but have you installed ndiswrapper-dkms? That should allow you to sudo modprobe ndiswrapper.

smskelley
  • 170
  • 6
1

The main reason for this error is bug in ndiswrapper 1.57 version. Check out this.

Download ndiswrapper 1.58 rc build here with better code than 1.57. It will work. Good luck

KK Patel
  • 18,693
  • 14
  • 57
  • 79
  • I followed the instructions and it built and installed correctly. However, now whenever I run `modprobe ndiswrapper`, I get no response from the terminal. It just acts like it is loading something, but nothing comes up. – thank_you Nov 08 '12 at 21:04
  • When you issue a command and there is no response, it means, roughly, 'command executed as requested and there are no warnings or errors to report.' That's the expected behavior. – chili555 Nov 08 '12 at 21:49
  • Well, what happens when it doesn't return with this `jason@jason:~$`? Because that is what is happening. – thank_you Nov 09 '12 at 19:27
  • I see, it hangs and never returns to the command prompt. I'd open a terminal and do: sudo tail -f /var/log/syslog. Open a second terminal and do sudo modprobe ndiswrapper. See what messages appear in the first. I suspect you have a version mismatch. I suggest you go into Synaptic and remove everything ndiswrapper. Then go to your terminal again and cd Downloads/ndiswrapper-1.58rc1 (or wherever you downloaded it) and then sudo su, make clean, make, make install. Now can you modprobe ndiswrapper? – chili555 Nov 12 '12 at 14:17
  • I did as you say and created the two terminals, however whenever I run `sudo tail -f /var/log/syslog` no messages return when I run `modprobe ndiswrapper`. – thank_you Nov 15 '12 at 20:24
1

I had to run echo ndiswrapper >> /etc/modules

1

EDIT: Run this first:

sudo rm -f /lib/modules/3.5.0-*-generic/updates/dkms/ndiswrapper.ko

Then run this:

sudo apt-get install --reinstall ndiswrapper-dkms ndiswrapper-source

This will recompile the ndiswrapper so that it will work on your kernel. See if it works for you.

MiJyn
  • 3,326
  • 20
  • 25
0

That is not the right kernel version for 12.10 (check current running kernel with uname -r command). Try:

sudo dkms build -m ndiswrapper -v 1.57
sudo dkms install -m ndiswrapper -v 1.57

Let us know if that succeeds in forcing ndiswrapper to be rebuilt.

Will Daniels
  • 1,696
  • 11
  • 10
  • The console returned when I tried either code with this `make KERNELRELEASE=3.5.0-18-generic KVERS=3.5.0-18-generic.......(bad exit status: 2) Error! Bad return status for module build on kernel: 3.5.0-18-generic (i686) Consult /var/lib/dkms/ndiswrapper/1.57/build/make.log for more information.` – thank_you Nov 08 '12 at 03:17
  • The make.log can be found in my question. – thank_you Nov 08 '12 at 03:22
  • So we have a winner: [LP Bug #1023645](https://bugs.launchpad.net/ubuntu/+source/ndiswrapper/+bug/1023645) – Will Daniels Nov 08 '12 at 03:28
-1

You can either wait for a fix to the bug or follow steps outlined in the bug comments, something along these lines:

mkdir ~/src
cd ~/src
wget http://downloads.sourceforge.net/project/ndiswrapper/testing/ndiswrapper-1.58rc1.tar.gz
tar -xvf ndiswrapper-1.58rc1.tar.gz
cd ndiswrapper-1.58rc1
make
sudo make install
Will Daniels
  • 1,696
  • 11
  • 10