My router went down, so I have a temporary one installed right now that has no Wifi. I decided to pick up a USB Wifi dongle, and I want to use my Ubuntu server as the bridge. I have the driver installed, and was following the guide for setting up NDISWrapper on the Ubuntu Community manual. When I run ndiswrapper -l:
rt2870 : driver installed
device (0846:9012) present
... So I assume that it is installed. I then run depmod -a and get no output (assuming it works correctly), and then modprobe ndiswrapper... But that returns FATAL: Module ndiswrapper not found.
This error seems weird to me, but I'll bite. I google the issue further, and find some people telling me to install 1.58 from the NDISWrapper website on Sourceforge. I try to run make in the extracted folder, but get this error:
Makefile:41: *** Please run 'make modules_prepare' in /usr/src/linux-headers-3.5.0-17. Stop.
Still not working! But why did the previous ndiswrapper commands work? The output of ndiswrapper -v shows that it's (mostly) installed:
ERROR: Module ndiswrapper not found.
module version is too old!
utils version: '1.9', utils version needed by module: '0'
module details:
ERROR: Module ndiswrapper not found.
You may need to upgrade driver and/or utils to latest versions available at
http://ndiswrapper.sourceforge.net
This is getting very irritating, but I don't know where to go from here. When I run uname -r, I get 3.5.0-23-generic, if that helps any (a lot of scripts are asking for it)
make: *** No rule to make target 'modules_prepare'. Stop.– Canadian Luke May 13 '13 at 05:40makeonndiswrappernow gives the same error message? – grimpitch May 13 '13 at 05:48Makefile:41: *** Please run 'make modules_prepare' in /usr/src/linux-headers-3.5.0-17. Stop.– Canadian Luke May 13 '13 at 05:49/lib/modules/3.5.0.23-generic/buildpoints to. – grimpitch May 13 '13 at 06:04ls -l /lib/modules/3.5.0-23-generic, you will see wherebuildpoints to, if it exists at all (it's a symlink). – grimpitch May 13 '13 at 23:26$ ls -l 4520 xrwx 1 root root 32 May 12 18:31 build -> /usr/src/linux-headers-3.5.0-17/– Canadian Luke May 14 '13 at 07:30sudo apt-get install --reinstall linux-headers-3.5.0-23-genericto fix it for the current kernel. – grimpitch May 15 '13 at 03:57$ sudo apt-get install --reinstall linux-headers-3.5.0-23-gener[sudo] password for luke: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-3.5.0-23-generic E: Couldn't find any package by regex 'linux-headers-3.5.0-23-generic'– Canadian Luke May 15 '13 at 04:11sudo apt-get updateand try the previous command again? – grimpitch May 15 '13 at 04:16apt-get updateseemed OK? How did you install the actual kernel? – grimpitch May 15 '13 at 04:31