分页: 1 / 1

不能安装 build-essential.

发表于 : 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

发表于 : 2008-03-04 20:41
leeaman
edgy,不会还用6.10吧?

发表于 : 2008-03-04 20:51
偏执
我的版本是 7.04呀,不是 6.10那个版本

发表于 : 2008-03-04 20:55
leeaman
把你的源的edgy全部替换feisty,update,再装

发表于 : 2008-03-04 20:58
dbzhang800
偏执 写了:我的版本是 7.04呀,不是 6.10那个版本
问题就在于 你用的是6.10的源

发表于 : 2008-03-04 20:58
oneleaf
sudo aptitude install build-essential
早期的 apt-get 不会自己处理依赖关系,使用 aptitude ,或者直接到新立得安装。

发表于 : 2008-03-04 22:35
偏执
问题解决了,非常感谢! :D

Re: 不能安装 build-essential.

发表于 : 2009-01-12 15:14
jianghua2176
偏执, 请问 不能安装 build-essential. 你是怎么解决的?

Re: 不能安装 build-essential.

发表于 : 2009-07-16 17:39
syfnet
怎么解决的,说一下,我也是同样问题。