在安装libncurses5-dev时遇到的问题

1、无法获取libncurses5-dev的解决办法

解决办法(更新源)

使用命令为 sudo  gedit /etc/apt/sources.list

将/etc/apt/sources.list的内容改为

deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse


deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-proposed main restricted universe multiverse


deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse


deb http://www.telemail.fi/mlind/ubuntu feisty fonts 
deb-src http://www.telemail.fi/mlind/ubuntu feisty fonts


deb http://packages.medibuntu.org/ hardy free non-free 

//也可以在网上找到其他的源码连接,我使用的是ubuntu9.10,这个源码连接有效

2、然后使用命令 apt-get install libncurses5-dev

出现下列软件不能满足依赖关系


3、如果出现然后将apt 改为aptitude

输入命令为 aptitude install libncurses5-dev


完成安装


参考的是http://www.linuxidc.com/Linux/2012-10/73114.htm    


    安装ubuntu12.10之后,第一件事就是更换源,ubuntu网易163的更新源速度一直很好。
    首先备份源,sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
    更换源,sudo gedit /etc/apt/sources.list
    将下边的源直接覆盖掉:
deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted


    运行apt-get update


      ubuntu中常用命令:
    apt-get upgrade
    apt-get install
    apt-get bulid-dep


12.04源

  deb http://mirrors.163.com/ubuntu/ precise main restricted
  deb-src http://mirrors.163.com/ubuntu/ precise main restricted
  deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
  deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
  deb http://mirrors.163.com/ubuntu/ precise universe
  deb-src http://mirrors.163.com/ubuntu/ precise universe
  deb http://mirrors.163.com/ubuntu/ precise-updates universe
  deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
  deb http://mirrors.163.com/ubuntu/ precise multiverse
  deb-src http://mirrors.163.com/ubuntu/ precise multiverse
  deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
  deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
  deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
  deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
  deb http://mirrors.163.com/ubuntu/ precise-security main restricted
  deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
  deb http://mirrors.163.com/ubuntu/ precise-security universe
  deb-src http://mirrors.163.com/ubuntu/ precise-security universe
  deb http://mirrors.163.com/ubuntu/ precise-security multiverse
  deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
  deb http://extras.ubuntu.com/ubuntu precise main
  deb-src http://extras.ubuntu.com/ubuntu precise main


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值