Ubuntu下安装方法
方法一:
1.sudo apt-get update
2.sudo apt-get upgrade
3.sudo apt-get install libncurses5-dev libncursesw5-dev
直接执行步骤2,会显示如下的错误:
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libtinfo-dev i386 5.9+20130608-1ubuntu1
404 Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libncurses5-dev i386 5.9+20130608-1ubuntu1
404 Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main libncursesw5-dev i386 5.9+20130608-1ubuntu1
404 Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo-dev_5.9+20130608-1ubuntu1_i386.deb 404 Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses5-dev_5.9+20130608-1ubuntu1_i386.deb 404 Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncursesw5-dev_5.9+20130608-1ubuntu1_i386.deb 404 Not Found [IP: 91.189.91.13 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
上面的问题应该是说无法连接网站,我是虚拟机上的ubuntu,不知道直接安装ubuntu会不会出现上述问题。我尝试了各种方法,以为是linux无法上网,但是我ping win7主机,可以ping通。我直接输入上面的网址也进不去。
要是执行步骤1也会出现问题,如下:
Err http://security.ubuntu.com saucy-security/main Sources
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/restricted Sources
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/universe Sources
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/multiverse Sources
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/main i386 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/restricted i386 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/universe i386 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com saucy-security/multiverse i386 Packages
404 Not Found [IP: 91.189.92.200 80]
Ign http://us.archive.ubuntu.com saucy/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-