ubuntu 下安裝 vim 編輯器的問題解決

問題描述: 

root@zhouls-virtual-machine:~# apt-get install vim
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package vim 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’ has no installation candidate
root@zhouls-virtual-machine:~#

如下圖:
這裏寫圖片描述

解決辦法:

  sudo apt-get update && sudo apt-get install vim
這裏寫圖片描述

這裏寫圖片描述

成功嘍!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章