How To Install Minecraft On Ubuntu Using Snap Packages

Minecraft Ubuntu Snap Package
Minecraft Ubuntu Snap Package.

Introduction

When I first installed Minecraft on a Ubuntu system it involved a convoluted set of steps which for the average computer user wasn't as straight forward and simply installing an executable or even a straight forward Debian package.

The steps involved obtaining the correct version of the Oracle runtimes and downloading the Minecraft.jar file.

You then have to make the Minecraft.jar file executable and run it using a Java command.

Whilst the process wasn't particularly difficult it wasn't as easy as the method that you will be using today.

Snap Packages

Ubuntu has a new package type called snap packages. Snap packages differ from normal packages in that rather than working out dependencies and only installing missing dependencies a Snap package downloads and installs every dependency.

Snap packages are installed to a separate location and are isolated from the rest of the system so that they are self contained. This is great for security purposes and it also prevents dependency issues when other packages are installed because each snap package uses its own set of libraries.

This is of course very expensive in terms of disk space because you might have the same libraries installed in multiple places.

The use of shared libraries was a great idea back in the day when disk space was at a premium because each application could share the same resources.

Most computers now have more disk space than people require and it is cheap to buy more disk space. By separating each application into their own container you no longer have to worry about the installation of one package breaking another package.

How To Install Minecraft Using A Snap Package

The process for installing Minecraft using a snap package is actually very straight forward.

First of all forget the graphical software tool. It is not fit for purpose. You need to use the command line.

Open a terminal and type the following command:

snap find . | less

This command will provide a list of available packages and page them using the less command.

You can find the Minecraft snap package by typing the following command:

snap find minecraft

A number of results will be returned and by looking at the descriptions you can see there is one called "Minecraft-nsg".

The "Minecraft-nsg" package doesn't in itself have the Minecraft.jar or Oracle files because they are proprietary but it does provide a method for installing them.

To install the "Minecraft-nsg" package type the following command:

sudo snap install minecraft-nsg

After the file has downloaded run the package by using the following command:

sudo snap run minecraft-nsg

The package will run and a license agreement will appear for the Oracle packages. Accept the agreement and the rest of the packages will download and install and once they have finished installing Minecraft will start.

All you need to do now is log in and away you go.

How To Start Minecraft

After it has installed you might be wondering how you run Minecraft on subsequent occasions.

You just need to run the same command as you did before:

sudo snap run minecraft-nsg

The Alternative Method For Installing Minecraft

Of course if you don't like this method there is another method for installing Minecraft.

The first thing to do is add a new PPA to your list of sources. A PPA stands for Personal Package Archive and it is basically another software repository.

To add the PPA run the following command in a terminal window:

sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer

You now need to run an update to refresh the list of packages for the new repository that you added.

sudo apt-get update

Now install the Minecraft installer package:

sudo apt-get install minecraft-installer

After the package has installed run it as follows:

minecraft-installer

Minecraft will now run and you can either register a new account or login.

Was this page helpful?