Check your Ubuntu version from the terminal
The fastest way to find your Ubuntu version is to open a terminal and run a single command. Press Ctrl + Alt + T to open the terminal application, then type this exactly:
lsb_release -a
Hit Enter. The terminal will show you several lines of information. Look for the line that says "Release:" — the number next to it is your Ubuntu version. For example, if it says "Release: 22.04", you are running Ubuntu 22.04 LTS.
This command works on every Ubuntu system and gives you the complete version number in seconds. If the terminal is not available on your system, the graphical methods below will work instead.
Key Takeaways
- The terminal command lsb_release -a shows your exact Ubuntu version number in one line of output.
- You can also find your version by opening Settings, clicking "About", and reading the "OS Name" field, which displays the version number.
- The version number tells you whether you have a Long Term Support (LTS) release that receives updates for five years, or a standard release with nine months of support.
- Different Ubuntu versions have different package names and software compatibility, so knowing your version matters when installing programs or following installation instructions.
Find your version through the graphical Settings menu
If you prefer not to use the terminal, you can find your Ubuntu version through the Settings application. Click the grid icon in the bottom left corner of your screen (or press the Super key) to open the Activities menu, then type "Settings" and click the Settings icon.
Once Settings opens, click "About" in the left sidebar. A window will appear showing your system information. Look for the line labeled "OS Name" — this will show your Ubuntu version number. You may also see "GNOME" listed, which is the desktop environment, but the OS Name field is what you need.
This method takes slightly longer than the terminal command but shows the same information in a format many people find easier to read.
Understand what your version number means
Ubuntu version numbers follow a pattern: the first two digits are the year, and the last two digits are the month of release. Ubuntu 22.04 was released in April 2022. Ubuntu 24.04 was released in April 2024. This numbering system makes it easy to see how old your system is.
The letters after the version number matter for how long you receive updates. An LTS (Long Term Support) release gets security and maintenance updates for five years. A standard release gets updates for nine months. Ubuntu releases an LTS version every two years — versions ending in .04 are always LTS releases. If you see "LTS" next to your version number, your system will be supported longer than a standard release.
Knowing whether you have an LTS or standard release helps you plan when you will need to upgrade. LTS releases are more stable and receive longer support, which is why many servers and workplaces use them.
Check your version when installing software
Many software installation instructions on the internet specify which Ubuntu versions they support. When you find installation steps for a program, they often say something like "for Ubuntu 20.04 and later" or "Ubuntu 22.04 only". Knowing your version number lets you follow the correct instructions without guessing.
Some software repositories (the sources where Ubuntu downloads programs) only work with certain versions. If you try to install a program built for Ubuntu 24.04 on Ubuntu 20.04, the installation may fail or the program may not work correctly. Checking your version first prevents these problems.
Update to a newer version when support ends
Ubuntu versions eventually stop receiving updates. Standard releases stop getting updates nine months after release. LTS releases stop getting updates five years after release. When your version reaches end of support, you should upgrade to a newer version to keep receiving security patches.
You can check the Ubuntu release schedule on the official Ubuntu website to see when your version stops being supported. If your version is near the end of support, plan an upgrade soon. Staying on an unsupported version leaves your system vulnerable to security problems that are no longer being fixed.
Verify your version before troubleshooting
When you search for help with a problem on your Ubuntu system, always include your version number in your search. The same error message might have different solutions depending on which version you are running. A fix that works for Ubuntu 22.04 might not work for Ubuntu 20.04, and vice versa.
If you post a question in a forum or ask for help online, providing your version number upfront saves time. Support people can give you accurate instructions instead of guessing which version you have. It also helps you avoid following instructions meant for a different version, which could cause problems.
Frequently Asked Questions
What if lsb_release -a does not work in my terminal?
Try cat /etc/os-release instead. This command reads the same information from a different location and works on all Ubuntu systems. Look for the line that says "VERSION_ID" to find your version number.
Is there a difference between Ubuntu 22.04 and Ubuntu 22.04 LTS?
No — they are the same thing. Ubuntu 22.04 is always an LTS release. The "LTS" label is sometimes added for clarity, but the version number alone tells you it is a Long Term Support release because it ends in .04.
Can I find my version number without opening the terminal?
Yes. Open Settings, click "About", and read the "OS Name" field. This shows your version number in the graphical interface without typing any commands.
What should I do if my version is no longer supported?
Plan an upgrade to a newer Ubuntu version. You can upgrade from within Settings by clicking "Software Updates" and looking for an upgrade option, or by using the terminal command do-release-upgrade. Back up your important files before upgrading.
Does knowing my Ubuntu version help with hardware problems?
Sometimes. Certain hardware drivers and firmware updates are version-specific. If you are troubleshooting a printer, graphics card, or network issue, including your Ubuntu version in your search helps you find the correct driver or fix for your exact system.