sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is a virtual package provided by:
vim-nox 2:7.4.052-1ubuntu3
vim-gtk 2:7.4.052-1ubuntu3
vim-athena 2:7.4.052-1ubuntu3
You should explicitly select one to install.
E: Package 'vim' has no installation candidate
答案1
apt-get install -y vim-version
--“版本”是您的机器所对应的版本。对于您的情况... vim-nox 2:7.4.052-1ubuntu3 或 vim-gtk 2:7.4.052-1ubuntu3 或 vim-athena 2:7.4.052-1ubuntu3 以上三个中的一个。选择一个