LSB Version is n/a

The output for lsb_release -a for me is

LSB Version:	n/a
Distributor ID:	EndeavourOS
Description:	EndeavourOS Linux
Release:	rolling
Codename:	rolling

As is clearly visible, my LSB Version is n/a. I’ve seen others post their outputs (e.g. here) and they seem to have values for it. Why does it say n/a for me?

on the github repo of lsb_release you can read the following in code:

# Defines the data files
INFO_LSB_FILE="/etc/lsb-release"              # where to get LSB version
INFO_LSB_DIR="/etc/lsb-release.d"             # where to get LSB addon modules
INFO_DISTRIB_FILE="/etc/os-release"           # <distrib>-<suffix>

by me the /etc/lsb-release file does not contain a version

[pycrk@eno ~]$ cat /etc/lsb-release
DISTRIB_ID=EndeavourOS
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="EndeavourOS Linux"
DISTRIB_CODENAME=rolling
[pycrk@eno ~]$ 

and /etc/lsb-release.d does not exist :man_shrugging:

2 Likes

Probably because those outputs are from 2 years ago. The “n/a” is normal.

3 Likes

could be a format change? before it was not needed top add this to /etc/lsb-release
but could be changed… i can add one indeed:
2023-01-31_22-10
But I think this is better:
2023-01-31_22-15

2 Likes

2023-01-31_22-18
Also fitting…

2 Likes

I have a fairly recent install and i have the same output. :thinking:

but i found the most bestest:
2023-01-31_22-26

version=`pacman -Qi lsb-release | grep -Po '^Version\s*: \K.+'`
LSB_VERSION=$version
DISTRIB_ID=EndeavourOS
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="EndeavourOS Linux"
DISTRIB_CODENAME=rolling

3 Likes

I modified it to pacman -Qi lsb-release | grep -Po '^Version\s*: \K.+(?=\.r.+)' but this is nice.

Edit: I ended up replacing it with just ¯\_(ツ)_/¯.

1 Like

The version is n/a (not applicable) for good reason.

When you add the LSB_VERSION it creates confusion - because the lines then refer to different thing.

You know what version means while other will think that LSB_VERSION is related to the distribution and so the questioin will become Version 2 of what - is it the iso or something else?

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.