在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

就可以了

posted @ 2021-06-22 09:50  lunawzh  阅读(149)  评论(0编辑  收藏  举报