The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
To check your Ubuntu version in a terminal, run lsb_release --description. It prints a readable release description such as Description: Ubuntu 26.04 LTS. If you need every distribution field, use lsb_release -a. When the lsb_release command is not installed, read the built-in identification file with cat /etc/os-release. These commands work independently of your desktop environment and are useful before following upgrade or compatibility instructions.
How do I check my Ubuntu version in the terminal?
Open Terminal and enter:
lsb_release --description
The result is normally a single line identifying the installed release:
As an Amazon Associate I earn from qualifying purchases.
Description: Ubuntu 26.04 LTS
The Ubuntu Desktop upgrade documentation uses this command-line method when you need to establish which Ubuntu release is installed before deciding what upgrade instructions apply. The command reports the release description, including an “LTS” label when that label is part of the distribution description.
This is a release-identification check, not an update check. It tells you which Ubuntu release the installation identifies as running; it does not prove that every security update is installed, that the release is still supported, or that third-party packages have not changed the system.
Popular on Amazon
- Ideal for Gifting
- Ideal for a bookworm
- Compact for travelling
What command shows all Ubuntu release fields?
Run the all-fields form when you need the distributor ID, human-readable description, release number, and codename together:
lsb_release -a
A typical response includes labels similar to these:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 26.04 LTS
Release: 26.04
Codename: example
The exact codename and release values depend on the installation. The line about unavailable LSB modules can appear on a normal Ubuntu system; it is not, by itself, evidence that the Ubuntu version could not be found. Focus on the fields beginning with Distributor ID, Description, Release, and Codename.
The lsb_release manpage documents the individual options as well as -a. Use the narrowest command that matches the information you need:
| Command | What it returns | When to use it |
|---|---|---|
lsb_release --description |
Readable Ubuntu release description | Fast confirmation of the release and any LTS wording |
lsb_release -a |
All available distribution fields | Troubleshooting, support requests, or compatibility checks that need the full identity |
lsb_release -r |
Release number | When a script, package guide, or support form asks only for the numeric release |
lsb_release -c |
Codename | When repository or package instructions identify a release by codename |
The short options are convenient at a prompt, while the long --description option makes the purpose obvious when you are copying a command into documentation or a support ticket. If you are unsure which field another person needs, use lsb_release -a and provide the complete response rather than choosing one line.
What is the difference between the Ubuntu release number, name and codename?
They identify the same release in different ways. The release number is the numeric identifier shown after Release:; the description is the presentation-ready text shown after Description:; and the codename is the release’s code label shown after Codename:.
For example, a description such as Ubuntu 26.04 LTS communicates the product family, numeric release and long-term-support designation in one line. A separate Release: 26.04 field is easier for software instructions to parse, while a codename is often used in repository configuration or bug reports. Do not treat the codename as a replacement for the release number: some instructions require one specifically.
If two commands display slightly different wording, compare the underlying release and codename fields rather than relying only on capitalization or spacing in the description. The description is meant for people; the separate release and codename fields are the safer values to transcribe into instructions that ask for an exact identifier.
Also popular on Amazon
The presence of “LTS” in the description is useful when selecting upgrade guidance, but it does not by itself report the end of support or prove that the system is eligible for a particular upgrade. Those are separate policy and maintenance questions.
What should I do if lsb_release is unavailable?
Read Ubuntu’s operating-system identification file directly:
cat /etc/os-release
Look for these entries:
PRETTY_NAME="Ubuntu 26.04 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION_CODENAME=example
PRETTY_NAME: a presentation-ready name suitable for reporting to a person.VERSION_ID: the machine-readable version identifier.VERSION_CODENAME: the codename, when the operating system supplies one.
The os-release manual specifies /etc/os-release as the preferred location. If that file is missing, the documented fallback is /usr/lib/os-release:
cat /usr/lib/os-release
Most people should start with /etc/os-release. The fallback matters on systems where the administrator or image builder has not placed the file in the usual location. If both locations are available, use the preferred /etc/os-release file first. The manual also allows some fields, including version information, to be absent on some operating systems. If a field is missing, report the fields that are present instead of assuming a value.
Do not execute the file as a shell script merely to read its values. Displaying it with cat lets you inspect the text without asking the shell to interpret every line as commands or assignments. You only need to read the relevant lines; there is no reason to transform the file before identifying the release.
Which method should I use: lsb_release or os-release?
Use lsb_release --description for the quickest human-readable Ubuntu answer, lsb_release -a when you need the complete distribution summary, and cat /etc/os-release as the dependable file-based fallback.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minute| Need | Recommended command | Reason |
|---|---|---|
| One readable release line | lsb_release --description |
Direct and easy to paste into a support conversation |
| Release number and codename together | lsb_release -a |
Shows the distribution fields in one response |
| Only the numeric release | lsb_release -r |
Keeps the output limited to the release field |
| Only the codename | lsb_release -c |
Useful when instructions name a release by codename |
lsb_release is not installed |
cat /etc/os-release |
Reads the operating-system identity file directly |
The Ubuntu Community Help Wiki notes that its terminal approach works regardless of which Ubuntu version or desktop environment is running. In practice, that means the command is not tied to GNOME, KDE Plasma, Xfce, or another graphical shell; the terminal and the operating-system files are what matter.
These options are alternatives for the same identification task, not competing upgrade tools. Choosing --description versus -a changes how much information is displayed. Choosing os-release changes where the information is read when the helper command is unavailable. You can use the file output to confirm the result of lsb_release if a support procedure asks for a second check.
Also popular on Amazon
What are the exact steps for a reliable check?
- Open any available terminal or text console and wait for the shell prompt.
- Run
lsb_release --descriptionfor the concise answer. - Read the complete line, including the numeric release and any LTS wording.
- Run
lsb_release -aif a guide asks for the distributor, release number, or codename. - If the shell reports that
lsb_releasecannot be found, runcat /etc/os-release. - Record
PRETTY_NAME,VERSION_ID, andVERSION_CODENAMEwhen those keys are present. - If
/etc/os-releaseis missing, trycat /usr/lib/os-release, the documented fallback location.
Use the exact spelling and punctuation shown in the commands. The two hyphens in --description are part of the long option. The single-letter forms use one hyphen, as in -a, -r, and -c. You do not need to combine options when a single command already provides the field you need.
How can I use the result before an upgrade?
First identify the release, then confirm the upgrade path and support conditions separately. Ubuntu’s upgrade guidance explicitly tells readers to establish the current version and whether it is an LTS or interim release before starting an upgrade.
- Run
lsb_release --descriptionand record the complete description. - Run
lsb_release -aif the upgrade instructions ask for the release number or codename. - If the command is missing, record
PRETTY_NAME,VERSION_ID, and any availableVERSION_CODENAMEfrom/etc/os-release. - Use the recorded release information to select documentation for that exact release family. Do not substitute a codename or version from a different installation.
- Check the release’s support and upgrade requirements in the relevant Ubuntu documentation. Version identification alone cannot establish whether an upgrade is currently offered or whether the installation has all available updates.
Keep the command output with any bug report or support request. The full output from lsb_release -a often prevents an avoidable follow-up question about which release, number, or codename is involved. If the instructions distinguish LTS and interim releases, copy the description line exactly so that the classification is visible.
Does checking the Ubuntu version also check for updates?
No. A release command reports the installed release identity; it does not query package repositories or list pending updates. An installation can correctly identify itself as a particular Ubuntu release while still needing security, bug-fix, or application updates.
Likewise, the output does not establish support status. Support depends on the release series, its LTS or interim classification, and the applicable support dates. Treat version identification as the first diagnostic step, then consult current Ubuntu release and upgrade documentation for support and maintenance information.
The same distinction applies when troubleshooting a failed installation. A package error can occur even when VERSION_ID and Release are correct, because repository configuration, pending updates, or third-party packages are separate parts of the system state. Use the version command to select the correct instructions, not as a substitute for those checks.
Recommended Free Tools
Why is hostnamectl not the best primary command?
hostnamectl is primarily designed to query or change the system hostname and related settings. Its output may include operating-system details on some systems, but that is incidental to its main purpose.
For a direct Ubuntu release check, prefer the documented distribution command:
Also popular on Amazon
lsb_release --description
If that command is unavailable, read:
cat /etc/os-release
This keeps the instruction aligned with the information you actually need: the distribution’s release identity rather than the machine’s hostname configuration. A hostname tool can therefore be useful for hostname administration, but it should not be the first answer to a question asking specifically for the Ubuntu release.
How do I troubleshoot an unexpected result?
“Command not found” appears for lsb_release
Use cat /etc/os-release and inspect PRETTY_NAME, VERSION_ID, and VERSION_CODENAME. If /etc/os-release is absent, try cat /usr/lib/os-release. This avoids guessing from a desktop “About” screen or from the kernel version.
Free tools Windows power users keep installed
One-click scans. No signup required.
The output says “No LSB modules are available”
That notice can accompany an otherwise useful lsb_release -a response. Read the distributor, description, release, and codename lines that follow. The notice does not replace those fields and does not automatically mean that Ubuntu’s release cannot be identified.
VERSION_CODENAME is missing
Some operating-system identification files do not provide every possible field. Use the available PRETTY_NAME and VERSION_ID values, or run lsb_release -a if that command is available. Do not guess a codename from the numeric release.
The release looks right, but a package guide still fails
Recheck that the guide expects the same release number or codename you recorded. Also distinguish the base Ubuntu release from the state of installed packages: a correct version string does not show whether repositories are configured correctly, updates are pending, or third-party software has altered dependencies.
The machine is not using a graphical desktop
That is not a problem. The terminal method is independent of the desktop environment, and the os-release file is intended to describe the operating system itself. Run the same commands from the available shell.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsThe description and file values look different
Compare the release number and codename fields first. PRETTY_NAME and the Description line are presentation text, so spacing or added classification such as “LTS” can differ while the underlying numeric identifier remains the same. If the numeric values genuinely conflict, preserve both outputs in a support request instead of choosing one by appearance alone.
What should I copy into a support request?
For a compact report, copy the output of:
lsb_release -a
If lsb_release is unavailable, copy the relevant lines from:
Also popular on Amazon
- It can be a gift option
- Comes with secure packaging
- Helpful in various ways
cat /etc/os-release
Include the complete PRETTY_NAME, VERSION_ID, and VERSION_CODENAME values when present. Avoid posting unrelated environment details unless the support instructions request them. If the output contains a hostname or other identifying information from a customized system, remove that information before sharing it publicly.
When a form asks for just one value, provide the requested field rather than pasting a shortened description. Use -r for a release number and -c for a codename. When the form does not say which field it needs, the complete -a output is the least ambiguous report.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →What is the shortest reliable answer?
Run lsb_release --description. Use lsb_release -a for all fields, and fall back to cat /etc/os-release when the command is unavailable. Remember that the result identifies the Ubuntu release; it does not independently verify update status or support eligibility.
Frequently Asked Questions
Can I check the Ubuntu version without opening a graphical terminal?
Yes. Any shell that can read the operating-system files can display the identity with cat /etc/os-release, including a non-graphical console. The command does not depend on a particular desktop interface.
Why does a codename matter if I already know the version number?
Some repository and package instructions address a release by codename rather than by number. Recording both prevents you from applying instructions intended for a different Ubuntu series.
Is the Linux kernel version the same as the Ubuntu version?
No. Kernel information describes the kernel currently running, while lsb_release and os-release identify the Ubuntu distribution release. They can change independently, so use the distribution commands for Ubuntu compatibility questions.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
What if my system is derived from Ubuntu but does not identify itself as Ubuntu?
Trust the values actually reported by lsb_release or os-release and follow documentation for that identified distribution. A derivative may use its own name, fields, or support policy even when it shares Ubuntu components.
Which command should I use when a form asks only for the release number?
Run lsb_release -r and copy the value after Release:. If the command is unavailable, use VERSION_ID from /etc/os-release instead.
The Bottom Line
Run lsb_release --description for a quick Ubuntu release check. Use lsb_release -a when you need the distributor, release number, and codename, or inspect /etc/os-release and then /usr/lib/os-release if the command is unavailable. These results identify the installed release, not its update or support status.




