我只是想快速测试一下。所以我运行了一个Docker容器,我想查看我正在运行哪个版本:
$ docker run -it ubuntu root@471bdb08b11a:/# lsb_release -a bash: lsb_release: command not found root@471bdb08b11a:/#
所以我尝试安装它(如此处建议):
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:/#
有人知道为什么这不起作用吗?
似乎未安装lsb_release。
您可以通过安装
apt-get update && apt-get install -y lsb-release && apt-get clean all
希望能有所帮助;)