xufeng@ubuntu:~$ sudo apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linux-headers-generic
[sudo] password for xufeng:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
gcc 已经是最新的版本了。
linux-headers-generic 已经是最新的版本了。
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
libreadline5-dev : 依赖: libreadline5 (= 5.2-7build1) 但是 5.2-9ubuntu1 正要被安装
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty/main i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty_main_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty/universe i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty/restricted i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty/multiverse i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-security/universe i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-security/main i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-security_main_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-security/multiverse i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-security_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-security/restricted i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-security_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-updates/universe i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-updates_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-updates/main i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-updates_main_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-updates/multiverse i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-updates_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-updates/restricted i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-updates_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-proposed/universe i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-proposed_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-proposed/main i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-proposed_main_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-proposed/multiverse i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-proposed_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-proposed/restricted i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-proposed_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-backports/universe i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-backports_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-backports/main i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-backports_main_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-backports/multiverse i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-backports_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://ubuntu.srt.cn/ubuntu/ natty-backports/restricted i386 Packages (/var/lib/apt/lists/ubuntu.srt.cn_ubuntu_dists_natty-backports_restricted_binary-i386_Packages)
W: 您可能需要运行 apt-get update 来解决这些问题
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。