全球主机交流论坛

标题: 跪求 技术流 大师出现~要被折磨疯了~debian g++ 依赖关系~ [打印本页]

作者: MrHan    时间: 2011-3-4 13:52
标题: 跪求 技术流 大师出现~要被折磨疯了~debian g++ 依赖关系~
debian:~# apt-get install g++
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.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
  g++: Depends: g++-4.3 (>= 4.3.2-1) but it is not going to be installed
E: Broken packages
debian:~# dpkg --install g++-4.3_4.3.2-1.1_amd64.deb
Selecting previously deselected package g++-4.3.
(Reading database ... 13619 files and directories currently installed.)
Unpacking g++-4.3 (from g++-4.3_4.3.2-1.1_amd64.deb) ...
dpkg: dependency problems prevent configuration of g++-4.3:
g++-4.3 depends on libstdc++6-4.3-dev (= 4.3.2-1.1); however:
  Package libstdc++6-4.3-dev is not installed.
dpkg: error processing g++-4.3 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
g++-4.3
debian:~# apt-get install libstdc++6-4.3-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libstdc++6-4.3-dev: Depends: libc6-dev (>= 2.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
debian:~# apt-get install libc6-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  g++-4.3: Depends: libstdc++6-4.3-dev (= 4.3.2-1.1) but it is not going to be installed
  libc6-dev: Depends: libc6 (= 2.7-18lenny7) but 2.11.2-10 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
debian:~# apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-libc-dev
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  g++-4.3
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 9019kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 13626 files and directories currently installed.)
Removing g++-4.3 ...
debian:~# apt-get install libc6
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libc6 is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-libc-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
debian:~# apt-get autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-libc-dev
The following packages will be REMOVED:
  linux-libc-dev
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 3961kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 13619 files and directories currently installed.)
Removing linux-libc-dev ...
debian:~# apt-get install libc6-dev
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.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.7-18lenny7) but 2.11.2-10 is to be installed
E: Broken packages
作者: cnweb    时间: 2011-3-4 14:01
看不懂
作者: 秋上书    时间: 2011-3-4 14:02
等待楼下解答
作者: Kokgog    时间: 2011-3-4 14:06
我记得我昨天回过这帖啊。。。
作者: Kokgog    时间: 2011-3-4 14:11
楼主,我发现你lenny的东西用squeeze的源。。。。。。。
作者: MrHan    时间: 2011-3-4 14:20
原帖由 Kokgog 于 2011-3-4 14:11 发表
楼主,我发现你lenny的东西用squeeze的源。。。。。。。


用的是 lenny的源啊

deb http://ftp.us.debian.org/debian lenny main
deb http://security.debian.org/ lenny/updates main
作者: 李院长    时间: 2011-3-4 14:22
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.

一些包不能安装。
这可能是因为你的请求不当或者你用的是一个不稳定的发行版,这些请求的包没有创建或者已经删除了。

以下的包没有满足的依lai

The following packages have unmet dependencies:
  g++: Depends: g++-4.3 (>= 4.3.2-1) but it is not going to be installed
作者: 腿毛飘飘    时间: 2011-3-4 14:22
apt-get -f install g++
作者: 李院长    时间: 2011-3-4 14:25
apt-get -f install libstdc++6-4.3-dev libc6-dev g++
作者: MrHan    时间: 2011-3-4 14:25
标题: 回复 8# 的帖子
debian:~# apt-get -f install g++
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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  g++: Depends: g++-4.3 (>= 4.3.2-1) but it is not going to be installed
E: Broken packages
作者: MrHan    时间: 2011-3-4 14:25
标题: 回复 9# 的帖子
debian:~# apt-get -f install libstdc++6-4.3-dev libc6-dev g++
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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.7-18lenny7) but 2.11.2-10 is to be installed
E: Broken packages
debian:~#
作者: naimaa    时间: 2011-3-4 14:44
可以翻译。。。
但是看不懂。。。
高手赶紧出来解决咯
作者: hepac    时间: 2011-3-4 14:56
apt-get install build-essential
作者: MrHan    时间: 2011-3-4 15:01
标题: 回复 13# 的帖子
debian:~# 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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  build-essential: Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:4.3.1) but it is not going to be installed
E: Broken packages
debian:~#
作者: server    时间: 2011-3-4 15:20
执行/etc/debian_version | cat看看
分支是什么,不稳定分支?
作者: server    时间: 2011-3-4 15:21
apt-get -f install && aptitude install libc6-dev g++
试试

[ 本帖最后由 server 于 2011-3-4 15:27 编辑 ]
作者: MrHan    时间: 2011-3-4 15:22
标题: 回复 15# 的帖子
debian:~# cat /etc/debian_version
5.0.7
作者: hepac    时间: 2011-3-4 15:23
简单的解决就是重装
作者: MrHan    时间: 2011-3-4 15:24
标题: 回复 18# 的帖子
已经重装很多次了
作者: 李院长    时间: 2011-3-4 15:35
换个版本吧,没用过大便,不了解。。。
作者: hepac    时间: 2011-3-4 15:36
如果是官方INSTALLER出来的全新安装,apt-get install build-essential过不了,那可以当BUG提交了
作者: MrHan    时间: 2011-3-4 15:51
只会 用大便啊
作者: Kokgog    时间: 2011-3-4 15:53
模板问题,缺ldconfig,而且libc6是squeeze的,我解了libc-bin的包,补了ldconfig进去,再帮你全部升squeeze,看看能不能解决
作者: server    时间: 2011-3-4 15:54
刷新源试试,不行就是模板问题,DEBIAN5.0.7我实体机装过没这问题。
作者: server    时间: 2011-3-4 15:55
标题: 回复 23# 的帖子
这样还不如直接加源升级到squeeze
作者: Kokgog    时间: 2011-3-4 15:57
原帖由 server 于 2011-3-4 15:55 发表
这样还不如直接加源升级到squeeze


就是缺ldconfig,升不了,装libc-bin,需要lenny的libc6,但是这个模板的libc6是squeeze的.......现在补进去在全部升.....
作者: MrHan    时间: 2011-3-4 15:58
升级 squeeze  应该可以
另外两个 被我稀里糊涂的已经升级 到squeeze
  这个搞不定啊
作者: Kokgog    时间: 2011-3-4 16:00
标题: 回复 27# 的帖子
好了,进去改密码吧,最好重启一下
作者: MrHan    时间: 2011-3-4 16:05
厉害  我现在去看看




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4