在docker 容器中安装vim

在容器中发现没vim,安装时

apt-get install vim

提示

        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        E: Unable to locate package vim

安装没有成功

解决方法:

先更新

apt-get update

再安装

apt-get install vim

就可以了

原文地址:https://www.cnblogs.com/lunawzh/p/14917158.html