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?

2 Answers 2


There is an lsb-release package that supplies the lsb_release command. This is separate from the lsb, lsb-base, and lsb-core packages. None of the lsb packages are essential. So if your package needs lsb_release it should specify that it depends on lsb-release.

  • 10
    Take care on proper naming: the package name lsb-release has a dash, but the lsb_release command has an underscore.
    – Doka
    Commented Dec 30, 2013 at 12:39

Not all Debian builds have lsb_release. For example, even the official Ubuntu Docker image does not have lsb_release.

The alternative is to use cat /etc/os-release.

  • 3
    A new raspi to setup, time for my monthly visit to this question.
    – Tejas Kale
    Commented Oct 9, 2018 at 23:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .