首页 新闻 会员 周边 捐助

how to install vim and emacs

0
悬赏园豆:10 [已关闭问题] 关闭于 2011-09-28 14:57

Because I can.t write chinese under ubuntu. so I use English.

I am a fresh man in ubuntu. I don't know how config the environment  for C++.

Search some material and says use emacs or vim to edit program. then use GCC to compile it.But when I install the vim or emacs .some problems occured.

Fist.

use these command to config

sudo apt-get install build-essential

sudo apt-get install vim

lichangh@ubuntu:~$ sudo apt-get install build-essential
[sudo] password for lichangh:
Sorry, try again.
[sudo] password for lichangh:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
lichangh@ubuntu:~$ 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
lichangh@ubuntu:~$

when I use sudo apt-get update to update list ,also some error

lichangh@ubuntu:~$ sudo apt-get update
Err http://ubuntu.uestc.edu.cn natty InRelease
 
Err http://ubuntu.uestc.edu.cn natty-backports InRelease
 
Err http://ubuntu.uestc.edu.cn natty-proposed InRelease
 
Err http://ubuntu.uestc.edu.cn natty-security InRelease
 
Err http://ubuntu.uestc.edu.cn natty-updates InRelease
 
Err http://ubuntu.uestc.edu.cn natty Release.gpg
  Unable to connect to ubuntu.uestc.edu.cn:http:
Err http://ubuntu.uestc.edu.cn natty-backports Release.gpg
  Unable to connect to ubuntu.uestc.edu.cn:http:
Err http://ubuntu.uestc.edu.cn natty-proposed Release.gpg
  Unable to connect to ubuntu.uestc.edu.cn:http:
Err http://ubuntu.uestc.edu.cn natty-security Release.gpg
  Unable to connect to ubuntu.uestc.edu.cn:http:
Err http://ubuntu.uestc.edu.cn natty-updates Release.gpg
  Unable to connect to ubuntu.uestc.edu.cn:http:
Reading package lists... Done
W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty/InRelease 

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-backports/InRelease 

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-proposed/InRelease 

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-security/InRelease 

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-updates/InRelease 

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty/Release.gpg  Unable to connect to ubuntu.uestc.edu.cn:http:

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-backports/Release.gpg  Unable to connect to ubuntu.uestc.edu.cn:http:

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-proposed/Release.gpg  Unable to connect to ubuntu.uestc.edu.cn:http:

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-security/Release.gpg  Unable to connect to ubuntu.uestc.edu.cn:http:

W: Failed to fetch http://ubuntu.uestc.edu.cn/ubuntu/dists/natty-updates/Release.gpg  Unable to connect to ubuntu.uestc.edu.cn:http:

W: Some index files failed to download. They have been ignored, or old ones used instead.
lichangh@ubuntu:~$

laura_lichanghong的主页 laura_lichanghong | 初学一级 | 园豆:116
提问于:2011-08-22 16:47
< >
分享
所有回答(1)
0

你这个软件源连不上,换了就行了

glob | 园豆:212 (菜鸟二级) | 2018-08-30 17:31
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册