不能安装 build-essential.

软件和网站开发以及相关技术探讨
回复
偏执
帖子: 4
注册时间: 2008-01-15 22:56
送出感谢: 0
接收感谢: 0

不能安装 build-essential.

#1

帖子 偏执 » 2008-03-04 20:32

输入 :sudo apt-get install build-essential

出现下列错误

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential: Depends: g++ (>= 4:4.1.1) but it is not going to be installed
E: Broken packages


版本 :Ubuntu 7.04
下列是我使用的源
deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ edgy main restricted universe multiverse
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid
送出感谢: 1 次
接收感谢: 23 次

#2

帖子 leeaman » 2008-03-04 20:41

edgy,不会还用6.10吧?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
偏执
帖子: 4
注册时间: 2008-01-15 22:56
送出感谢: 0
接收感谢: 0

#3

帖子 偏执 » 2008-03-04 20:51

我的版本是 7.04呀,不是 6.10那个版本
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid
送出感谢: 1 次
接收感谢: 23 次

#4

帖子 leeaman » 2008-03-04 20:55

把你的源的edgy全部替换feisty,update,再装
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
送出感谢: 0
接收感谢: 2 次
联系:

#5

帖子 dbzhang800 » 2008-03-04 20:58

偏执 写了:我的版本是 7.04呀,不是 6.10那个版本
问题就在于 你用的是6.10的源
头像
oneleaf
论坛管理员
帖子: 10229
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 103 次

#6

帖子 oneleaf » 2008-03-04 20:58

sudo aptitude install build-essential
早期的 apt-get 不会自己处理依赖关系,使用 aptitude ,或者直接到新立得安装。
偏执
帖子: 4
注册时间: 2008-01-15 22:56
送出感谢: 0
接收感谢: 0

#7

帖子 偏执 » 2008-03-04 22:35

问题解决了,非常感谢! :D
jianghua2176
帖子: 1
注册时间: 2009-01-12 14:19
送出感谢: 0
接收感谢: 0

Re: 不能安装 build-essential.

#8

帖子 jianghua2176 » 2009-01-12 15:14

偏执, 请问 不能安装 build-essential. 你是怎么解决的?
syfnet
帖子: 213
注册时间: 2009-07-13 16:23
送出感谢: 0
接收感谢: 0

Re: 不能安装 build-essential.

#9

帖子 syfnet » 2009-07-16 17:39

怎么解决的,说一下,我也是同样问题。
回复

回到 “软件/网站开发”