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