sudo 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
Run Code Online (Sandbox Code Playgroud)
我试过sudo apt-get update && sudo apt-get upgrade没有效果,同样的问题。
我刚刚安装了 Ubuntu。vim 可以工作,但按下箭头键时会打印 ABCD。
# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted
# See …Run Code Online (Sandbox Code Playgroud) 在vi 1.cpp
我编写我的 C++ 程序之后。
g++ 1.cpp -o 1.out
Run Code Online (Sandbox Code Playgroud)
工作正常。但
./ 1.out
Run Code Online (Sandbox Code Playgroud)
给出错误:bash:./:是一个目录