虚拟机的linux系统如何安装curses函数库

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-

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值