基于 debian 操作系统的 docker 镜像,安装 vim,步骤:
apt-get update
apt-get install vim
注意:
直接运行步骤2,可能会报错:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vim
此时,需要先运行步骤1,再运行步骤2
apt-get update
apt-get install vim
直接运行步骤2,可能会报错:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vim
此时,需要先运行步骤1,再运行步骤2