The fastest way to find your Ubuntu version

Open the terminal and type lsb_release -a, then press Enter. This command shows your Ubuntu version number, release name, and codename in three lines. It's the most reliable method because it reads the system information directly.

If you prefer not to open the terminal, you can also find this information through the graphical interface. Click the system menu (usually in the top-right corner), select "About This Computer" or "System Settings", and look for the "OS Name" or "Version" field. The exact location varies slightly between Ubuntu versions, but it's always in the system information section.

Key Takeaways

  • The terminal command lsb_release -a displays your exact Ubuntu version, release name, and codename in seconds.
  • You can also find version information through Settings > About This Computer without opening the terminal.
  • Ubuntu version numbers follow a pattern: the year and month of release (for example, 22.04 means April 2022).
  • Knowing your version matters because some software only runs on specific Ubuntu releases, and security updates vary by version.

Understanding Ubuntu version numbers

Ubuntu releases follow a consistent naming scheme. The number represents the year and month: 22.04 means the release came out in April 2022, and 20.04 came out in April 2020. The ".04" or ".10" indicates whether it's the April or October release that year.

Every two years, Ubuntu releases a Long Term Support (LTS) version, marked with "LTS" in the system information. These versions receive security updates for five years instead of nine months. If you see "22.04 LTS" or "20.04 LTS", you're on a long-term support release. Non-LTS versions are supported for nine months and are better for users who update frequently.

Finding your version through the terminal

The terminal method gives you the most complete information. Open the terminal (Ctrl+Alt+T on most Ubuntu systems), type lsb_release -a, and press Enter. You'll see output that looks like this:

Distributor ID: Ubuntu Release: 22.04 Codename: jammy

The "Release" line is your version number. The "Codename" is Ubuntu's internal name for that release (22.04 is called "Jammy Jellyfish"). If you only want the version number without the extra information, type lsb_release -r instead.

Another terminal option is cat /etc/os-release, which shows similar information in a different format. Both commands work on all Ubuntu versions and are equally reliable.

Finding your version in Settings

If you prefer the graphical method, click the system menu in the top-right corner of your screen. On Ubuntu 22.04 and newer, this is usually a power icon or settings icon. Select "About This Computer" or "System Settings".

In the window that opens, look for a section labeled "OS Name", "Version", or "Ubuntu Version". The version number appears here alongside the release name. This method works the same way on all Ubuntu desktop versions, though the exact menu location may shift slightly between releases.

Why your version matters

Knowing your Ubuntu version is important for several practical reasons. Software packages sometimes specify which Ubuntu versions they support — a program built for 20.04 might not run on 18.04 without extra steps. When you search for help online or ask for technical support, telling people your version helps them give you accurate instructions.

Your version also determines how long you'll receive security updates. LTS versions get updates for five years from release, while standard releases stop receiving updates nine months after launch. If you're running an older non-LTS version, you may need to upgrade to continue receiving security patches.

Checking if you need to update

Once you know your version, you can decide whether an update is necessary. If you're on an LTS version and it's still within the five-year support window, you don't need to upgrade immediately. If you're on a non-LTS version that's more than nine months old, you should plan an upgrade soon because security updates will stop.

To see if updates are available, open the terminal and type sudo apt update followed by sudo apt upgrade. This updates your packages to the latest versions within your current Ubuntu release. If you want to upgrade to a newer Ubuntu version entirely, that's a separate process that requires more planning.

Frequently Asked Questions

What's the difference between the version number and the codename?

The version number (like 22.04) is the official identifier based on release date. The codename (like "Jammy") is Ubuntu's internal name for that release. Both refer to the same version — they're just different ways of naming it. You'll see both used interchangeably in documentation and support forums.

Can I run software from a newer Ubuntu version on my older version?

Sometimes, but not always. Software built for a newer Ubuntu version may depend on libraries or features that don't exist in older versions. Your best option is to check the software's documentation for which Ubuntu versions it supports, or try installing it and see if it works. If it doesn't, upgrading Ubuntu is usually the solution.

How do I know if I'm on an LTS version?

When you run lsb_release -a or check About This Computer, the output will include "LTS" in the version line if you're on a long-term support release. LTS versions are released every two years in April (20.04, 22.04, 24.04). If you don't see "LTS" listed, you're on a standard nine-month release.

Is it safe to use an older Ubuntu version that's no longer supported?

Once a version stops receiving updates, it no longer gets security patches for newly discovered vulnerabilities. Using an unsupported version is riskier, especially if the computer connects to the internet. If you're on an older non-LTS version, upgrading to the next LTS release is the safest path forward.