![无法在 Ubuntu 14.04 上安装 vim:“软件包‘vim’没有安装候选项”](https://linux22.com/image/1009955/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2014.04%20%E4%B8%8A%E5%AE%89%E8%A3%85%20vim%EF%BC%9A%E2%80%9C%E8%BD%AF%E4%BB%B6%E5%8C%85%E2%80%98vim%E2%80%99%E6%B2%A1%E6%9C%89%E5%AE%89%E8%A3%85%E5%80%99%E9%80%89%E9%A1%B9%E2%80%9D.png)
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 以上三个中的一个。选择一个