• Education & Careers
  • October 26, 2025

How to Check Ubuntu Version: Terminal & GUI Methods Guide

Ever been stuck trying to install software that requires a specific Ubuntu release? Or maybe you got a cryptic error message that made you wonder if your system's too old? Been there! Just last month when I was setting up a development server, I wasted two hours debugging before realizing I was using an outdated LTS version. That's why knowing how to check Ubuntu version matters more than folks realize.

Let me show you exactly how to find your Ubuntu version through multiple methods. Whether you're a terminal ninja or GUI lover, we've got options. I'll even throw in some troubleshooting tips from my own screw-ups. Oh, and if you're wondering why your friend's command worked but yours failed? We'll cover that too.

Why Bother Checking Your Ubuntu Version Anyway?

Look, I get it. Checking your OS version sounds boring until:

  • You try installing Docker and get dependency hell because you're on 18.04 instead of 20.04
  • Security patches stop coming for your release (happened to my old media server!)
  • You spend hours debugging only to discover the tutorial was for Ubuntu 22.04 Jammy Jellyfish and you're still on 20.04 Focal Fossa

Seriously, about 60% of Ubuntu support questions I see in forums could be avoided by checking version compatibility first. Plus, if you're managing multiple machines like I do, keeping track manually is impossible.

Pro Tip: Always verify Ubuntu versions before following online tutorials. That "simple" 5-step guide might be written for a different release!

Terminal Methods: Quick and Powerful

If you've got terminal access (even via SSH), these methods are lightning fast. I use them daily when managing cloud servers. No graphics needed!

The lsb_release Command - My Personal Favorite

This is my go-to when I need the full picture. Just pop open your terminal and type:

lsb_release -a

You'll see output like:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

What this tells you:

  • Distributor: Confirms it's Ubuntu (handy for derivatives)
  • Description: Full version with LTS status
  • Release: Base version number
  • Codename: The cute animal name (Jammy Jellyfish here)

Why I prefer it? One command gives everything. No extra packages needed. Even works on older Ubuntu versions that might lack newer tools.

Watch Out: If you see "No LSB modules are available", don't panic! It's just a harmless message meaning optional components aren't installed. Your version info is still correct.

hostnamectl: Systemd's Power Tool

For systems using systemd (which is most modern Ubuntu installs), try this:

hostnamectl

Look for the "Operating System" line:

Operating System: Ubuntu 22.04.3 LTS
Kernel: Linux 5.15.0-86-generic

Bonus: You also get kernel version and architecture. Super helpful when diagnosing hardware compatibility issues. Last week this saved me when I realized my kernel was too old for new GPU drivers.

Checking /etc/os-release - The Raw Data

Want to see under the hood? This file contains all version details:

cat /etc/os-release

Sample output:

NAME="Ubuntu"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 22.04.3 LTS"
VERSION_ID="22.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy

This is what other commands read behind the scenes. Useful for scripting! I use this in deployment scripts to check version compatibility before installing packages.

When You Can't Use Terminal: GUI Methods

No shame in preferring visual methods! Especially helpful when the terminal won't launch (yes, I've had desktop environments crash on me too).

Settings App: The Simple Approach

For most desktop users:

  1. Click the system menu (top-right corner)
  2. Select Settings (gear icon)
  3. Navigate to About

You'll see something like:

Ubuntu 22.04.3 LTS
64-bit • GNOME Version 42.5

Simple as that. But honestly? I find this method frustrating when I need precise details for troubleshooting. It doesn't show the codename or point release number which matters for some fixes.

System Monitor Alternative

If Settings isn't working (happened to me after a bad update):

  1. Press Alt+F2 to open the run dialog
  2. Type gnome-system-monitor
  3. Go to the System tab

Look for "Operating System" in the overview. Less polished but gets the job done.

Version Comparison: Know Your Options

Not all Ubuntu releases are created equal. Here's what you need to know about different version types:

Version Type Support Duration Best For My Experience
LTS (Long Term Support)
e.g., 20.04, 22.04
5 years standard support
+5 years extended (paid)
Servers, production environments My default choice for stability. Ran 18.04 for 4 years without major issues
Interim Releases
e.g., 23.04, 23.10
9 months Enthusiasts, new hardware support Tried 23.04 but encountered driver issues. Only use for testing now
Point Releases
e.g., 22.04.3
Same as base version All users (cumulative updates) Always upgrade to latest point release - fixes annoying bugs!

Real-World Scenarios: When Version Checks Save You

Before Installing Software

Last month a client asked why their Python install failed. Turns out they were on Ubuntu 18.04 trying to install a package requiring >=20.04. Output:

E: Package 'python3.10' has no installation candidate

Solution: First check version with lsb_release -d, then upgrade or find alternatives.

Debugging "Command Not Found"

A junior dev recently struggled with podman not working. Why? Ubuntu 20.04 ships with an older build. We checked with:

grep VERSION /etc/os-release

Confirmed it was 20.04, then added the official repository for newer builds.

Advanced Checks: More Than Just Version Numbers

Sometimes you need deeper system insights. Here's what I use for professional sysadmin work:

Kernel and Architecture

uname -a

Output:

Linux mypc 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Key details:

  • Kernel version: 5.15.0-86
  • Architecture: x86_64 (64-bit)
  • Build date: Helps diagnose patching issues

Desktop Environment Version

For GUI issues, run:

echo $XDG_CURRENT_DESKTOP

Or for GNOME specifically:

gnome-shell --version

How to Check Ubuntu Version for Upgrades

Planning an upgrade? First verify your current version:

cat /etc/issue.net

Then check upgrade paths:

  • 18.04 → 20.04: Fully supported path
  • 20.04 → 22.04: Recommended upgrade path
  • Non-LTS to LTS: Often requires reinstalling

Upgrade Warning: Always back up data first! My 19.10 → 20.04 upgrade broke NVIDIA drivers. Took me a weekend to fix.

FAQs: Your Ubuntu Version Questions Answered

Q: I see "Ubuntu 22.04" but my friend has "22.04.3". What's the difference?

A: The ".3" indicates it's the third point release. Think of it as a major update bundle. Always good to upgrade!

Q: How often should I check my Ubuntu version?

A: I recommend checking quarterly. More often if you're installing new software or noticing issues. Servers? Check during maintenance windows.

Q: Terminal says "command not found" for lsb_release!

A: Try installing it: sudo apt install lsb-release. Some minimal installs skip it. Or use cat /etc/lsb-release instead.

Q: Is my Ubuntu version still supported?

Check Ubuntu's official release page or run: sudo apt update && sudo apt upgrade. If you get security updates, you're supported!

Q: What does LTS mean?

A: Long Term Support. These versions get security patches for 5+ years. Non-LTS releases? Only 9 months. Stick with LTS unless you need cutting-edge features.

Troubleshooting Common Issues

Sometimes checking your version reveals problems:

My Version Shows as "Ubuntu" Without Numbers

Usually means /etc/os-release is corrupted. Try reinstalling base-files:

sudo apt install --reinstall base-files

Different Versions Reported by Different Commands

Rare but happens after partial upgrades. Fix with:

sudo apt update
sudo apt full-upgrade

Desktop Shows Wrong Version After Upgrade

Log out and back in or reboot. GUI sometimes caches old info. Drives me nuts when this happens!

Beyond Version Checking: What Next?

So you've checked your Ubuntu version - now what?

  • If outdated: Consider upgrading (back up first! I've learned this the hard way)
  • If unsupported: Seriously, upgrade ASAP. Hackers love abandoned releases
  • If current: Set a calendar reminder for next check. I do quarterly reviews

Remember that time I found a production server running 16.04 six months after EOL? Yeah. Don't be that person. Regular version checks are basic hygiene for any Ubuntu user.

Got an Ubuntu version horror story? Or a cool trick I missed? Hit me up - always learning new ways to tame this OS!

Leave A Comment

Recommended Article