2014-11-22 6 views
0

내 Rdbberry Pi는 절반 이상 설치된 libc6에 대해 불평을 계속하므로 더 이상 설치하지 않습니다. 예를 들어, 내가하려고 할 때 g ++ 4.7을 설치하려면 다음Raspberry Pi Libc가 손상되었습니다.

[email protected] ~/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) 

나는 이것에 대해 무엇을 할 수 있습니까?

답변

0

cat /etc/apt/sources.list /etc/apt/sources.list.d/* 

에는 데비안의 repos이 없어야합니다

에서 당신의 /etc/apt/sources.list 파일 또는 /etc/apt/sources.list.d/*, 보기에 잘못된 저장소를 추가 한 것 같은데 당신이 "위지"에, 그래서 "SID"또는 "제시"를 제거 같은 소스 목록에, 또한 raspbian 버전을 확인, 보이는, 당신이 그것을 고칠 때, 당신의 sources.list 올바른

sudo apt-get update 
sudo apt-get -f install 

했다 경우 , 당신은 임의의 사이트로부터 deb를 설치하지 않는 것을 배워야합니다. 당신의 sources.list 수정하거나 도움이되지 않았다, 다음 명령의 출력을 제공하시기 바랍니다 어렵게에 있다면 이제

wget https://archive.raspbian.org/raspbian/pool/main/e/eglibc/libc6-dev_2.13-38%2brpi2%2bdeb7u3_armhf.deb 
sudo dpkg -i --force-all libc6-dev_2.13-38+rpi2+deb7u3_armhf.deb 
sudo apt-get -f install 

를 다시 설치하여 libc6 내 문제를 해결하기 위해

apt-cache policy libc6 
apt-cache policy libc6-dev 
cat /etc/apt/sources.list /etc/apt/sources.list.d/* 
0

2015 년 이미지에서 나에게 잘 돌아갔습니다.

wget https://archive.raspbian.org/raspbian/pool/main/e/eglibc/libc6-dev_2.13-38%2brpi2%2bdeb7u3_armhf.deb 
sudo dpkg -i --force-all libc6-dev_2.13-38+rpi2+deb7u3_armhf.deb 
sudo apt-get -f install