分页: 1 / 1

为什么装不了build-essential?

发表于 : 2010-05-02 9:48
嗜血魂K
hang@hang-laptop:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package build-essential has no installation candidate

求助啊?什么原因额...
这个问题阻碍我用ubuntu几个月 了...


先谢谢了

--------------------------------采取3楼方法-------------------------------------------------------
依然不行额
hang@hang-laptop:~$ sudo aptitude install build-essential
[sudo] password for hang:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
No candidate version found for build-essential
No candidate version found for build-essential
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done




我用Code::Blocks编译
-------------- Build: Release in test ---------------

Linking executable: /home/hang/Release/test
Unable to exec g++.real: No such file or directory
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings



PS:9.1

Re: 为什么装不了build-essential?

发表于 : 2010-05-02 9:54
qingdaoocean
源选好了吗?sudo apt-get update过了吗?没遇到过这种问题~

Re: 为什么装不了build-essential?

发表于 : 2010-05-02 10:05
pllion
这是依赖问题,用aptitude试试!

Re: 为什么装不了build-essential?

发表于 : 2010-05-02 18:12
嗜血魂K
qingdaoocean 写了:源选好了吗?sudo apt-get update过了吗?没遇到过这种问题~
用的cn99的源
那命令试了.

Re: 为什么装不了build-essential?

发表于 : 2010-05-02 18:23
嗜血魂K
pllion 写了:这是依赖问题,用aptitude试试!
请问用这个的话该怎么输入命令呢?
直接把apt-get 替换吗?

Re: 为什么装不了build-essential?

发表于 : 2010-05-03 10:43
pllion

代码: 全选

sudo aptitude install build-essential
这个命令会解决一些依赖问题。

Re: 为什么装不了build-essential?

发表于 : 2010-06-17 10:39
嗜血魂K
ls
依然不行额
hang@hang-laptop:~$ sudo aptitude install build-essential
[sudo] password for hang:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
No candidate version found for build-essential
No candidate version found for build-essential
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done





-------------- Build: Release in test ---------------

Linking executable: /home/hang/Release/test
Unable to exec g++.real: No such file or directory
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

Re: 为什么装不了build-essential?

发表于 : 2010-06-17 10:55
hasee.wu
系统-系统管理-软件源--下载自--其它站点--选择最佳服务器, 等一段时间后, 然后点这个源, 点选择服务器添加

系统-系统管理-软件源-ubuntu软件,
main universe 什么的 ,在源设置里该打钩的要打钩.

选好后关闭

然后

系统-系统管理---新立德 在新立得中搜索 build-essential ,找到后在新立德中安装。

实在不行,直接下载。

http://packages.ubuntu.com/lucid/build-essential


不要给我说什么什么疯的os, 那是东莞一个叫什么疯的牛人自主研发的os, 人家是开源(开放软件源)的os

那个牛系统很牛,用那个系统的也都是牛人,用那个牛系统的方法不能用在ubuntu 上的, 要不然害我在这里好心发帖,浪费感情。

Re: 为什么装不了build-essential?

发表于 : 2010-06-18 11:50
rediscover

代码: 全选

sudo apt-get install g++

Re: 为什么装不了build-essential?

发表于 : 2010-06-20 14:17
pllion
嗜血魂K 写了:ls
依然不行额
换个 源

Re: 为什么装不了build-essential?

发表于 : 2010-06-20 14:22
Crazier
更新源..................

Re: 为什么装不了build-essential?

发表于 : 2010-06-20 15:51
双鱼的契约
同意3F 少GCC和其信赖包

Re: 为什么装不了build-essential?

发表于 : 2010-06-20 15:57
tenzu

代码: 全选

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential

Re: 为什么装不了build-essential?

发表于 : 2010-06-20 16:32
范海伦
build-essential。。。请问是什么?

Re: 为什么装不了build-essential?

发表于 : 2010-06-20 22:08
aerofox
sudo aptitude update 或 sudo apt-get update 后仍然不行,就把执行这个 update 时的输出信息贴出来看看。