1.刚安装好Ubuntu后需要装vim编辑器时,在终端输入vim test.c时会出现下面情况:
nigel@yq-ubuntu:~/worksp$ vim test.c
The program 'vim' can be found in the following packages:
* vim
* vim-gnome
* vim-tiny
* vim-athena
* vim-gtk
* vim-nox
Try: sudo apt-get install
nigel@yq-ubuntu:~/worksp$
这说明系统还未安装vim编辑器。
2.但是当我输入sudo apt-get install vim-gtk时(我们用的vim就是这个安装包),
再次出现了下面这样的问题:
nigel@yq-ubuntu:~/worksp$ sudo apt-get install vim-gtk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim-gtk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'vim-gtk' has no installation ca