A .deb package I am releasing expects that it can call lsb_release. One customer using Debian 6.0.5 indicated that the lsb_release command (even in the terminal) produces a command not found error. Is this standard or is there something wrong with his Debian build?
There is an
lsb-release
package that supplies thelsb_release
command. This is separate from thelsb
,lsb-base
, andlsb-core
packages. None of the lsb packages are essential. So if your package needslsb_release
it should specify that it depends onlsb-release
.Not all Debian builds have
lsb_release
. For example, even the official Ubuntu Docker image does not havelsb_release
.The alternative is to use
cat /etc/os-release
.