第一步输入命令: apt-get update这个命令的作用是:同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包等更新完毕以后再敲命令: apt-get install vim 命令安装即可