Here's How I Managed to Install Minecraft on Ubuntu

Switched to Linux and looking to play Minecraft? The good news is that if you have Java on your system, you can enjoy Minecraft. Here's how!
Warp Terminal

Minecraft is one of the most popular video-game in history, with several million monthly active players. This sandbox game was developed by Mojang Studios, which was later purchased by Microsoft.

If you are a Minecraft player, it's easy to set it up in Linux these days. Let's see how you can play it properly on Ubuntu.

🚧
If you are using any proprietary graphics, you should install proper drivers. Otherwise, you may not be able to play Minecraft properly or at all.

Install Java Runtime

Java is required to run Minecraft. So, you should install a proper Java runtime on your system. You have two main opti ons:

  • OpenJDK: Easily installable from Ubuntu's repositories but I noticed a slight lag in movement during gameplay.
  • OracleJDK: Deb file needs to be downloaded from Oracle's website but I find smoother movement with it.

Option 1: OpenJDK

You can install the open-source OpenJDK using the command below:

sudo apt install default-jdk

Learn more about installing Java on Ubuntu and the various options you have.

Option 2: Oracle JDK

Oracle provides a deb file, to install Oracle JDK in Ubuntu and other Debian-based systems. It has some proprietary code compared to the OpenJDK.

Download the DEB files from the official Oracle web page.

Now, install the deb package using the dpkg command:

sudo dpkg -i <path-to-downloaded-deb-file>

For me, it was:

sudo dpkg -i jdk-22_linux-x64_bin.deb 

That's it. You have installed Java on your system. Verify it using the command:

java --version
Checking installed version of Java in Ubuntu using the --version option
Checking Installed Java version

Install Minecraft Launcher

Once you have set the Java Runtime on your system, you are ready to install Minecraft in Ubuntu.

First, download the Debian installation files for Minecraft from the official repository.

Download the Debian installation files from Minecraft official website
Download Debian Install files

This will download a .deb file. Right-click on the file and select open with.
From the new dialog box, select App Center and click Open.

Open the Minecraft DEB file in App Center
Open Deb file in App Center
🚧
At the time of writing this, installing deb file through App Center is only rolling out to users.

This will open it in the App Center. Click on the Install button to install the file.

On the Ubuntu App Center, click on the Install button to install the Minecraft DEB file
Install DEB File

It will ask you to confirm and then prompt you to give admin password. Give those responses and you are done installing.

If you are a terminal fan, you can install the deb file using the command:

sudo apt install <path-to-the-deb-file>

OR

sudo dpkg -i <path-to-the-deb-file>

Run the Launcher

After installing the Minecraft deb file, open it from the Ubuntu Activities Overview.

Open the Minecraft Launcher from Ubuntu Activities Overview
Open Minecraft Launcher

The launcher will download the required update files.

Minecraft Launcher downloading required files to run the application.
Minecraft Launcher Downloading Files

You need to wait for some time for the download and clean up to finish. After that, you can log in to Minecraft using your Microsoft Account.

🚧
If you are an active Minecraft player, you should be aware of the Mojang β†’ Microsoft account migration. If you are coming back after a long time, you may have to start with a Microsoft account, since the post-migration process is completed.
Log in to the Minecraft Launcher using the Microsoft Account
Minecraft Login

Click on Sign in using your MS Account and follow the on-screen instructions.

If you have not purchased Minecraft, once you complete the sign-in process, you will be landed on a page to purchase Minecraft.

Purchase Minecraft to play. You can click on the "Play Demo" button to start a demo session.
Purchase or Play Demo

Or you can play a demo.

🚧
Demo will download some 950 MB of data. So make sure you have a good internet connection.

Once the download is completed, it will start automatically. You can click on the β€œPlay Demo World” button.

Click on the "Play Demo World" button for playing a demo Minecraft world.
Play a Demo
🚧
The demo is available for 5 in-game days (1 hour and 40 minutes real time). You need to purchase for full experience.
Minecraft Demo will be active for only 5 in-game days, which is equal to 1 hour and 40 minutes of real time. This will be notified before entering the Demo world.
Minecraft Demo Warning

When you click on the β€œContinue Playing!” button, you will be entered into the Demo world.

Inside Minecraft Demo session in Ubuntu
Playing Minecraft Demo

Conclusion

I believe you can handle it from here. Enjoy Minecraft on Linux πŸ˜„

About the author
Sreenath

Sreenath

Linux tinkerer by day, Lord of the Rings fanatic by night. When I'm not busy conquering the command line, you can find me kicking back and watching some football while quoting JRR Tolkien

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.