When I used the command lsb_release, System threw an error that "No lsb modules are available". So what are they and why to install them to get my system info(through command lsb_release)?
Asked
Active
Viewed 8,142 times
4
-
3See the [bug](https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/66914). – Vijay Feb 02 '19 at 12:16
-
1Who say you "need to install them"? – mikewhatever Feb 02 '19 at 12:30
-
Use `lsb_release -cdir`. Plain `lsb_release` is not supposed to work on Ubuntu. – AlexP Feb 02 '19 at 13:32
-
dupe: https://askubuntu.com/questions/230766/how-lsb-module-affects-system-and-can-be-made-available-to-the-system – Rinzwind Feb 02 '19 at 14:15
-
1Thanks @VeeJay. I got why it is showing the error. But I didn't get what are these modules! – Brijesh Feb 09 '19 at 19:12
-
@mikewhatever in the below link, one suggests to install for removing the error. https://askubuntu.com/questions/230766/how-lsb-module-affects-system-and-can-be-made-available-to-the-system – Brijesh Feb 09 '19 at 19:13
-
Thanks @AlexP. This command worked. However, in the link provided by VeeJay I saw "lsb_release -a" also worked(but it showed the error too with the required result). – Brijesh Feb 09 '19 at 19:16
1 Answers
1
After trying lsb_release -cdir and seeing that it worked, I just set it up as an alias with
alias lsb_release='lsb_release -cdir'
I'm running Ubuntu 18.04, so doing this made sense for me.
Glendon Gross
- 91
- 1
- 3