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:~$
你这个软件源连不上,换了就行了