Debian 9.12 Stretch에서 다음과 같은 libc6 종속성 문제가 발생했습니다.
sudo apt 설치 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.24-11+deb9u4) but 2.27-6 is to be installed
Depends: libc-dev-bin (= 2.24-11+deb9u4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
어떻게 해결할 수 있나요?
편집 1: 적절한 전략 libc6
libc6:
Installed: 2.27-6
Candidate: 2.27-6
Version table:
*** 2.27-6 100
100 /var/lib/dpkg/status
2.24-11+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
2.24-11+deb9u1 500
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
편집 2:
sudo apt install libc6/stable libc6-bin/stable locales/stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'stable' for 'libc6' was not found
E: Unable to locate package libc6-bin
E: Release 'stable' for 'locales' was not found
답변1
시스템의 현재 버전이 libc6
Debian 9 버전보다 최신 버전이므로 설치가 불가능합니다 libc6-dev
(일치해야 함 libc6
). 를 설치하려면 관련 패키지를 libc6-dev
다운그레이드해야 합니다 .libc6
sudo apt install libc6/stretch libc-bin/stretch locales/stretch
다른 패키지를 다운그레이드해야 할 수도 있습니다.
모든 작업이 완료되면 설치할 준비가 된 것입니다 libc6-dev
.
답변2
마지막으로 다른 포럼에서 도움을 받았습니다. https://serverfault.com/a/1004951/302842
문제가 있는 패키지를 다운그레이드하는 방법은 다음과 같습니다.
apt install libc6/stretch libc6-dev/stretch libc-dev-bin/stretch libc-bin/stretch locales/stretch sudo/stretch
다운그레이드 성공!