如果安装vim的时候出现问题,比如:
Reading package lists… DoneBuilding dependency tree Reading state information… DonePackage vim is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another source
E: Package ‘vim’ has no installation candidate
执行 sudo apt-get update 就可以了