如下所示, packagepowertop
依赖于libstdc++6 (>= 4.4.0)
并且我有libstdc++6
version 5.2.1-23
,它应该满足该依赖关系。请注意,该选项-t testing
不会影响我是否收到此错误。我的系统是混合的,有一些来自测试发行版的软件包,但稳定的软件包具有更高的优先级,因此默认情况下不会安装。我的libstdc++6
来自测试发行版。
domas@nc4010-bl ~> sudo apt-get install -t testing powertop
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:
powertop : Depends: libstdc++6 (>= 4.4.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
domas@nc4010-bl ~> dpkg -l libstdc++6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii libstdc++6:i38 5.2.1-23 i386 GNU Standard C++ Library v3
为什么这种依赖关系没有得到满足?
答案1
我不知道您使用的是哪个版本的 powertop,但似乎这是一个已知问题: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795297