I believe you were lucky that the ndiswrapper didn't compile, otherwise you would have happily installed it and made it more difficult than it really is.
If you have a wired connection or other means to connect to internet, please open a terminal (Ctrl-Alt-T) and run this command -
Reboot and see if wifi is working now.
sudo apt-get install linux-firmware-nonfree
If you don't have a working internet connection on that machine, download the firmware package from this link : http://mirrors.kernel.org/ubuntu/poo...buntu1_all.deb
Copy the downloaded .deb package to your Ubuntu Desktop, open a terminal, and run the following command to manually install it -
If the firmware is installed and it still doesn't work, please follow the "Wireless Script" link in my signature, download and run the script as per instructions there, and post back the report it generates.
sudo dpkg -i Desktop/linux-firmware*.deb
While posting the outputs, please use 'Code' tags. It preserves the output's formatting and makes the post cleaner, compact and more readable. To see a quick 'HowTo' with screenshots, please follow the "Using Code Tags" link in my signature.