How to Install Minecraft on Ubuntu

Install Minecraft Java Edition on Ubuntu from the official Minecraft.deb (launcher 2.1.3), openjdk-21-jre-headless, or the Minecraft.tar.gz binary: sign in with a Microsoft account, launch minecraft-launcher, and download the game from the Installations tab.

Published

Updated

Read time 6 min read

Reviewed byDeepak Prasad

Install Minecraft on Ubuntu banner with pixel block motif and Ubuntu orange accent

Minecraft Java Edition on Ubuntu is installed through the official Mojang launcher—not the legacy Minecraft.jar. Microsoft publishes Minecraft.deb for Debian/Ubuntu and Minecraft.tar.gz for manual installs. You need a Java runtime, a desktop session (Wayland or X11), and a Microsoft account linked to a Java Edition license (or use the demo).

This guide covers how to install Minecraft on Ubuntu from the official .deb, the tarball fallback, and the optional mc-installer Snap. Steps below were tested on Ubuntu 25.04; the graphical login wizard requires a real desktop (not plain SSH).

Tested on: Ubuntu 25.04 (Plucky Puffin); kernel 6.14.0-37-generic; amd64.

NOTE
Pick one client install path (official .deb or .tar.gz). The mc-installer Snap is community-maintained—not Mojang’s launcher. A dedicated server uses server.jar and is a different workflow (server setup overview).

Quick command summary

Task Command
Install Java runtime sudo apt install -y openjdk-21-jre-headless
Download official .deb wget https://launcher.mojang.com/download/Minecraft.deb
Install launcher sudo apt install -y ./Minecraft.deb
Launch (GUI) minecraft-launcher or Activities → Minecraft Launcher
Tarball alternative wget …/Minecraft.tar.gz && tar -xzf Minecraft.tar.gz
Run tarball binary ./minecraft-launcher/minecraft-launcher
Community Snap sudo snap install mc-installer
Remove launcher sudo apt purge -y minecraft-launcher

Prerequisites

  • Ubuntu 22.04 LTS, 24.04 LTS, or newer (25.04 tested here) on x86_64 (amd64).
  • Desktop environment with Wayland or X11—the launcher is a GTK GUI app.
  • sudo for package installation.
  • 4 GB RAM minimum (8 GB+ recommended); GPU drivers help with larger render distances.
  • Java runtimeopenjdk-21-jre-headless or default-jre (install Java guide).
  • Microsoft account with Java Edition owned, or use Play Demo in the launcher.
  • Outbound HTTPS to launcher.mojang.com and Minecraft CDN hosts.

See check Ubuntu version if you are unsure which release you are on.


Choose an install method

Method Best for Jump to
Official Minecraft.deb Most Ubuntu Desktop players who want the standard Minecraft launcher Step 2
Minecraft.tar.gz Users who prefer a manual portable install without a .deb Step 3
mc-installer Snap Users who prefer installing from the Snap Store Step 4
server.jar Server hosts running a multiplayer world—not the game client Minecraft server guides

For most players on Ubuntu Desktop, install the official .deb. Use the tarball or Snap when you prefer those workflows. Skip the 2013 java -jar Minecraft.jar flow—Mojang replaced it with the native launcher binary.


Step 1: Install Java (JRE)

Check whether Java is already present:

bash
java -version

If missing, install a current runtime:

bash
sudo apt update
sudo apt install -y openjdk-21-jre-headless

Example on Ubuntu 25.04:

text
openjdk version "21.0.9" 2025-10-21
OpenJDK Runtime Environment (build 21.0.9+10-Ubuntu-125.04)
OpenJDK 64-Bit Server VM (build 21.0.9+10-Ubuntu-125.04, mixed mode, sharing)

default-jre also works; on 25.04 it tracks OpenJDK 21. You do not need a full JDK unless you develop Java mods.


Download from Mojang’s CDN:

bash
cd ~/Downloads
wget https://launcher.mojang.com/download/Minecraft.deb

Probe and file size on Ubuntu 25.04:

text
HTTP/2 200
content-type: application/octet-stream
content-length: 825844

Install with apt so dependencies resolve:

bash
sudo apt install -y ./Minecraft.deb
text
Selecting previously unselected package minecraft-launcher.
Unpacking minecraft-launcher (2.1.3) ...
Setting up minecraft-launcher (2.1.3) ...

Verify:

bash
which minecraft-launcher
dpkg -l minecraft-launcher
text
/usr/bin/minecraft-launcher
ii  minecraft-launcher  2.1.3  amd64  Official Minecraft Launcher

Desktop integration files land under /usr/share/applications/minecraft-launcher.desktop.


Step 3: Install from Minecraft.tar.gz (alternative)

Use the tarball when you want a portable directory or a manual install without dpkg:

bash
cd ~/Downloads
wget https://launcher.mojang.com/download/Minecraft.tar.gz
tar -xzf Minecraft.tar.gz
text
-rw-rw-r-- 1 user user 1.1M Oct 10  2024 Minecraft.tar.gz
minecraft-launcher/minecraft-launcher: ELF 64-bit LSB pie executable, x86-64, dynamically linked

The binary is already executable. Launch from the extract folder:

bash
cd minecraft-launcher
./minecraft-launcher

Optional: move to /opt and add a .desktop file or symlink minecraft-launcher into ~/.local/bin for menu-less launches.


Step 4: mc-installer Snap (optional)

Snapcraft publishes a community mc-installer Snap (publisher James Tigert / kz6fittycent):

bash
sudo snap install mc-installer
text
name:      mc-installer
summary:   A simple installer for Minecraft - Java Edition
publisher: James Tigert (kz6fittycent)

This is not the official Mojang package. Prefer Minecraft.deb unless you standardize on Snap for all desktop apps.


Step 5: Launch, sign in, and download the game

  1. Open ActivitiesMinecraft Launcher (or run minecraft-launcher in a terminal on the desktop).
  2. Sign in with your Microsoft account (Mojang accounts were migrated—use Microsoft login).
  3. On first run the launcher downloads updates; progress appears in the launcher window.
  4. Open the Installations tab, pick a release (or create one), then click Play.
  5. The client downloads game assets to ~/.minecraft on first launch.

On a headless SSH session without a display, the launcher exits with:

text
Gtk-WARNING **: cannot open display:

That is expected—use a local desktop session or a remote desktop tool.


Verify hardware (optional)

Check CPU and memory before tuning render distance:

bash
lscpu | grep -E 'Model name|Architecture|CPU\(s\)'
free -h

Uninstall

Official .deb launcher:

bash
sudo apt purge -y minecraft-launcher
sudo apt autoremove -y

Game data (optional):

bash
rm -rf ~/.minecraft

Snap:

bash
sudo snap remove mc-installer

Tarball-only install: delete the extracted minecraft-launcher folder and any custom .desktop entry.


Troubleshooting

Symptom Likely cause Fix
cannot open display No GUI / SSH only Launch from a desktop session; use X11 forwarding or a remote desktop
java: command not found JRE not installed sudo apt install -y openjdk-21-jre-headless
.deb install dependency errors Missing packages sudo apt install -f after dpkg -i
Double-click .deb opens archive File manager association Use sudo apt install ./Minecraft.deb in terminal
Launcher downloads forever Network / proxy / CDN block Check firewall; try another network
Old Minecraft.jar / chmod guides fail Obsolete 2013 workflow Use official .deb or .tar.gz from launcher.mojang.com
Want a private multiplayer world Client vs server confusion Install server.jar on a VPS (server guide), not the desktop launcher
Multiple launchers conflict .deb + Snap + tarball Pick one; purge others

References


Summary

The reliable way to install Minecraft Java Edition on Ubuntu is openjdk-21-jre-headless (or default-jre), then wget the official Minecraft.deb and sudo apt install ./Minecraft.deb. That places minecraft-launcher 2.1.3 at /usr/bin/minecraft-launcher with a GNOME menu entry.

Extract Minecraft.tar.gz when you want a standalone binary under your home or /opt directory. Sign in with a Microsoft account, let the launcher download assets into ~/.minecraft, and click Play. For a headless dedicated server, use server.jar instead of this client launcher.


Frequently Asked Questions

1. How do I install Minecraft on Ubuntu?

Install a JRE (sudo apt install -y openjdk-21-jre-headless), download Minecraft.deb from launcher.mojang.com/download/Minecraft.deb, then run sudo apt install ./Minecraft.deb. Launch Activities → Minecraft Launcher and sign in with your Microsoft account.

2. Is Minecraft free on Ubuntu?

The launcher and demo are free to download. Full Java Edition requires a purchased license linked to your Microsoft account. The launcher downloads game files after you sign in.

3. Do I need Java to play Minecraft on Ubuntu?

Yes. Minecraft Java Edition runs on the JVM. Install openjdk-21-jre-headless or default-jre before launching. The official .deb pulls some GTK dependencies but not a full JDK.

4. What is the official way to install Minecraft on Linux?

Mojang publishes Minecraft.deb for Debian/Ubuntu and Minecraft.tar.gz for other layouts at launcher.mojang.com/download. Prefer the .deb on Ubuntu—it installs /usr/bin/minecraft-launcher and a desktop entry.

5. Should I use the mc-installer Snap on Ubuntu?

The community mc-installer Snap is a third-party wrapper, not the official Mojang launcher. Use the .deb from launcher.mojang.com unless you specifically want Snap packaging—avoid stacking multiple launchers.

6. Why does minecraft-launcher say cannot open display?

The launcher needs a graphical desktop (Wayland or X11). Over plain SSH without X forwarding or on a headless server, use a desktop session or install a dedicated Minecraft server JAR instead of the client launcher.

7. Can I install Minecraft with wget and a .jar file?

The old Minecraft.jar launcher workflow from 2013 is obsolete. Current installs use Minecraft.deb or the minecraft-launcher binary inside Minecraft.tar.gz from Mojang download servers.

8. How do I uninstall Minecraft from Ubuntu?

Run sudo apt purge -y minecraft-launcher. Remove ~/.minecraft if you no longer need worlds and cached game files. For Snap mc-installer use sudo snap remove mc-installer.

9. How is a Minecraft server different from the client on Ubuntu?

This guide installs the graphical Java Edition client. A dedicated server uses server.jar, a Java runtime, and eula.txt acceptance—no desktop launcher. That is a separate headless setup on VPS or home servers.
Omer Cakmak

Linux Administrator

Highly skilled at managing Debian, Ubuntu, CentOS, Oracle Linux, and Red Hat servers. Proficient in bash scripting, Ansible, and AWX central server management, he handles server operations on …