ubuntu 9.04 g++ 安装问题

来源:百度知道 编辑:UC知道 时间:2024/06/05 04:36:47
sudo apt-get install g++ 不好使。
插入安装盘,也不好使。-
sudo apt-get install build-essential
已经试过了,但是不好使。
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.
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
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed

1、首选,确认你已经安装了build-essential程序包:

sudo apt-get install build-essential

2、安装
sudo apt-get install g++-3.4 或 sudo apt-get install g++-4.0

楼上正解
换个国内的源吧
rootguide的就行
再sudo apt-get install build-essential

换源再试。

去新立得里搜索一下,安装,可能是有依赖关系或者版本的问题

依赖关系的问题,试没试过在新立得里安装