【发布时间】:2015-03-05 07:17:05
【问题描述】:
我的 Raspberry Pi 将不再安装任何东西,因为它一直在抱怨安装了一半的 libc6。例如,当我尝试安装 g++ 4.7 时:
pi@raspberrypi ~/workspace $ sudo apt-get install g++-4.7
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.7 : Depends: libstdc++6-4.7-dev (= 4.7.2-5+rpi1) but it is not going to be installed
libkrb5-3 : Depends: libc6 (>= 2.16) but 2.13-38+rpi2+deb7u3 is to be installed
locales : Depends: glibc-2.19-1 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
所以,然后我运行sudo apt-get install -f,它给了我这个错误:
dpkg: error processing libc6:armhf (--configure):
package libc6:armhf is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
libc6:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
对此我能做些什么?
【问题讨论】:
标签: linux raspberry-pi libc