Check linux ubuntu version

quick ubuntu and mint version check

Page content

To determine the Ubuntu version that your Linux Mint installation is based on, you can use several methods involving command-line tools and system files.

Here are some of the most effective ways:

awesome terminal windows

Using lsb_release Command

The lsb_release command provides detailed information about the Linux distribution, including the base Ubuntu version.

  • Open Terminal: You can open a terminal from the Menu or by pressing CTRL+ALT+T.

  • Run the Command:

lsb_release -a

the output would be something like

No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 22.1
Release:        22.1
Codename:       xia

/etc/os-release File

The /etc/os-release file contains standardized information about your operating system distribution, including the base Ubuntu version.

cat /etc/os-release

This will display various details about your Linux Mint installation, including the VERSION_ID, which often corresponds to the base Ubuntu version, like

NAME="Linux Mint"
VERSION="22.1 (Xia)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22.1"
VERSION_ID="22.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=xia
UBUNTU_CODENAME=noble

ok. it is noble pangolin.

/etc/lsb-release File

The /etc/lsb-release file is another source of information that can provide details about the base Ubuntu version.

cat /etc/lsb-release

This will display various details, including DISTRIB_DESCRIPTION, which typically indicates the base Ubuntu version.

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=22.1
DISTRIB_CODENAME=xia
DISTRIB_DESCRIPTION="Linux Mint 22.1 Xia"

very close to first one.

Using System Reports

Linux Mint provides a graphical tool called “System Reports” that can also show you the base Ubuntu version.

Open Menu: Navigate to the main menu of your Linux Mint desktop environment.

Access System Reports:

  • Go to Preferences > System Information.
  • Click on the System Reports tab.
  • Look for information about the base Ubuntu version under the relevant section.

Using inxi Command

The inxi command is a powerful system information tool that can also display details about your Linux Mint installation, including the base Ubuntu version.

Install inxi (if not already installed):

sudo apt-get install inxi

Run the Command:

inxi -S

This will provide a summary of system information, including details about your Linux Mint installation and its base Ubuntu version. like:

System:
Host: rg-mint Kernel: 6.8.0-60-generic arch: x86_64 bits: 64
Desktop: Cinnamon v: 6.4.8 Distro: Linux Mint 22.1 Xia

Conclusion

By using any of these methods, you can easily determine the Ubuntu version that your Linux Mint installation is based on. Each method provides slightly different levels of detail, so you can choose the one that best fits your needs. Whether you prefer command-line tools or graphical interfaces, there are multiple ways to access this information conveniently.