Feng’ Blog

Docker容器中安装vim
进入容器:docker exec -it --user root odoo12ent_web_1 bash 输入...
扫描右侧二维码阅读全文
29
2019/01

Docker容器中安装vim

docker20190129.png

进入容器:

docker exec -it --user root odoo12ent_web_1 bash
输入vim时报错:
vim: command not found
输入apt-get install vim命令,提示:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package vim

解决:

apt-get update
这个命令的作用是:同步 /etc/apt/sources.list/etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包, 更新完毕后: apt-get install vim 完成安装
Last modification:January 29th, 2019 at 09:21 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment