Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsb_release fails on Debian 11 #285

Open
ISibboI opened this issue Dec 30, 2021 · 1 comment
Open

lsb_release fails on Debian 11 #285

ISibboI opened this issue Dec 30, 2021 · 1 comment

Comments

@ISibboI
Copy link

ISibboI commented Dec 30, 2021

Relates to #247

I am using lsb_release through a dependency, resulting in the following debug message:
09:23:38 [DEBUG] (1) os_info::imp::lsb_release: lsb_release command failed with Os { code: 2, kind: NotFound, message: "No such file or directory" }

=== Software versions ===

os_info version 3.0.8

root@931004d4b69d:/# cat /etc/issue
Debian GNU/Linux 11 \n \l

root@931004d4b69d:/# ls /etc/*-release
/etc/os-release
root@931004d4b69d:/# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

@stanislav-tkach
Copy link
Owner

Thanks for the report! Could you please clarify if os_info was able to determine your OS and its version? As far as I can see, it is normal if the lsb_release command can be absent on Debian. In that case the os_info library should be able to determine the version from the file. In that case this warning can be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants