How To Install libpulse-jni on Ubuntu 18.04

In this tutorial we learn how to install libpulse-jni on Ubuntu 18.04. libpulse-jni is PulseAudio sound driver for Java (JNI libraries)

Introduction

In this tutorial we learn how to install libpulse-jni on Ubuntu 18.04.

What is libpulse-jni

libpulse-jni is:

IcedTea implementation of javax.sound.sampled.spi.MixerProvider using PulseAudio as a mixer.

This package contains the architecture specific Java native interface part.

There are three methods to install libpulse-jni 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 libpulse-jni Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libpulse-jni

Install libpulse-jni Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpulse-jni

Install libpulse-jni 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 libpulse-jni using aptitude by running the following command:

sudo aptitude -y install libpulse-jni

How To Uninstall libpulse-jni on Ubuntu 18.04

To uninstall only the libpulse-jni package we can use the following command:

sudo apt-get remove libpulse-jni

Uninstall libpulse-jni And Its Dependencies

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

sudo apt-get -y autoremove libpulse-jni

Remove libpulse-jni Configurations and Data

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

sudo apt-get -y purge libpulse-jni

Remove libpulse-jni configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpulse-jni

References

Summary

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