在安装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

在安装libncurses5-dev时遇到的问题_第1张图片

完成安装


参考的是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


你可能感兴趣的:(在安装libncurses5-dev时遇到的问题)