Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lsb_release: command not found in latest Ubuntu Docker container

I just wanted to test something out real quick. So I ran a docker container and I wanted to check which version I was running:

$ docker run -it ubuntu     root@471bdb08b11a:/# lsb_release -a bash: lsb_release: command not found root@471bdb08b11a:/#  

So I tried installing it (as suggested here):

root@471bdb08b11a:/# apt install lsb_release Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package lsb_release root@471bdb08b11a:/#  

Anybody any idea why this isn't working?

like image 618
kramer65 Avatar asked Oct 15 '19 13:10

kramer65


People also ask

What provides lsb_release Ubuntu?

The lsb_release command provides certain LSB (Linux Standard Base) and distribution- specific information. If no options are given, the -v option is assumed.

What is lsb_release command?

The lsb_release command displays LSB (Linux Standard Base) information about your specific Linux distribution, including version number, release codename, and distributor ID.

What provides lsb_release Debian?

The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information. If no options are given, the -v option is assumed.


1 Answers

It seems lsb_release is not installed.

you can install it via

apt-get update && apt-get install -y lsb-release && apt-get clean all 

Hope that helps ;)

like image 74
ckaserer Avatar answered Sep 21 '22 21:09

ckaserer