kra*_*r65 50 linux ubuntu containers version docker
我只是想快速测试一下。所以我运行了一个 docker 容器,我想检查我正在运行的版本:
$ docker run -it ubuntu    
root@471bdb08b11a:/# lsb_release -a
bash: lsb_release: command not found
root@471bdb08b11a:/# 
所以我尝试安装它(如建议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:/# 
有人知道为什么这不起作用吗?
Cle*_*rer 98
似乎没有安装 lsb_release 。
你可以通过安装它
apt-get update && apt-get install -y lsb-release && apt-get clean all
希望有帮助;)
此错误可能是由于在 ubuntu 16.04 中卸载或升级默认的 python3 程序版本而发生的
纠正这个问题的方法是重新安装ubuntu自带的原始python3版本并再次重新链接。(在 ubuntu 16.04 中 - 默认 python3 版本是 python 3.5
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.5 /usr/bin/python3
| 归档时间: | 
 | 
| 查看次数: | 51972 次 | 
| 最近记录: |