In which version do you see it?

If I run the command

$ uname -a

in the terminal I get this response:

Linux EQUIPO 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

But if I run

$ lsb_release -a

it responds:

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

What version am I on?
22.04.3-Ubuntu
or Ubuntu 22.04.4 LTS

To the response, which command should I follow and trust?

The problem is that this is not the only case or the only time this has happened to me lately with Ubuntu.

A few days ago I went crazy trying to compile a driver because the system told me I had version 11 of GCC when I actually had version 12 and the problem was in a direct link. That's why my compilation was correct, but then the driver didn't work.

Ubuntu should be more careful about these things. I see this very frequently lately. And the truth is that I don't know if I'm updated to 22.04.03 or 22.04.04 because each information command gives me a response. And I don't know which one to trust.

You can check this file:

cat /etc/os-release

If your system is fully up-to-date, it'll have the latest files which state it's the latest LTS point release.

The kernel version does mention 22.04.3, but that's just a label, possibly indicating the release when it was built.

Example /etc/os-release file
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=jammy

Regarding GCC, it is possible to have multiple versions installed (gcc-11, gcc-12). A package manager like Synaptic can list which versions are installed, or from terminal:

dpkg --list gcc*
3 Likes

Ok.
Thanks for the info and lesson in knowledge.
Don't trust "uname -a".
From what I can see I can confirm that I'm on 22.04.4 LTS
Thanks a lot for the info again.

2 Likes