lsb_release: command not found in latest Ubuntu Docker container

后端 未结 2 2022
梦如初夏
梦如初夏 2021-01-01 11:02

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    
ro         


        
2条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 11:27

    This error can happen due to uninstalling or upgrading the default python3 program version in ubuntu 16.04

    The way to correct this is by reinstalling the original python3 version which comes with ubuntu and relinking again. (in ubuntu 16.04 - the default python3 version is python 3.5

    sudo rm /usr/bin/python3
    sudo ln -s /usr/bin/python3.5 /usr/bin/python3
    

提交回复
热议问题