How To Install ndiswrapper-source on Ubuntu 18.04

In this tutorial we learn how to install ndiswrapper-source on Ubuntu 18.04. ndiswrapper-source is Source for the ndiswrapper Linux kernel module

Introduction

In this tutorial we learn how to install ndiswrapper-source on Ubuntu 18.04.

What is ndiswrapper-source

ndiswrapper-source is:

Some vendors do not release specifications of the hardware or provide a Linux driver for their wireless network cards. This project implements Windows kernel API and NDIS (Network Driver Interface Specification) API within Linux kernel. A Windows driver for wireless network card is then linked to this implementation so that the driver runs natively, as though it is in Windows, without binary emulation.

This package provides the source code for the ndiswrapper kernel module.

There are three methods to install ndiswrapper-source on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ndiswrapper-source Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ndiswrapper-source using apt-get by running the following command:

sudo apt-get -y install ndiswrapper-source

Install ndiswrapper-source Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ndiswrapper-source using apt by running the following command:

sudo apt -y install ndiswrapper-source

Install ndiswrapper-source Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ndiswrapper-source using aptitude by running the following command:

sudo aptitude -y install ndiswrapper-source

How To Uninstall ndiswrapper-source on Ubuntu 18.04

To uninstall only the ndiswrapper-source package we can use the following command:

sudo apt-get remove ndiswrapper-source

Uninstall ndiswrapper-source And Its Dependencies

To uninstall ndiswrapper-source and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ndiswrapper-source

Remove ndiswrapper-source Configurations and Data

To remove ndiswrapper-source configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ndiswrapper-source

Remove ndiswrapper-source configuration, data, and all of its dependencies

We can use the following command to remove ndiswrapper-source configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ndiswrapper-source

References

Summary

In this tutorial we learn how to install ndiswrapper-source package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.