i386이 활성화된 64비트 시스템에서 크로스 컴파일을 시도하고 있습니다.
$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
armhf
jessie 저장소만 활성화합니다.
$ apt-cache policy libc6:armhf
libc6:armhf:
Installed: (none)
Candidate: 2.19-18+deb8u1
Version table:
2.19-18+deb8u1 0
700 http://http.debian.net/debian/ jessie/main armhf Packages
그러나 해독할 수 없는 이상한 충돌(" libc6:armhf : Breaks: libc6 (!= 2.19-18+deb8u1)
")이 발생했습니다. 전체 apt-get 출력은 다음과 같습니다.
i386 libc는 이 시스템에서 제대로 실행되지만 armhf 버전(armel도 포함)은 실패합니다. 이 apt-get 오류와 해결 방법에 대해 어떻게 생각합니까?
$ apt-get install libc6:armhf 패키지 목록 읽기... 완료 종속성 트리 구축
상태 정보 읽기... 완료 일부 패키지를 설치할 수 없습니다. 이는 불가능한 상황을 요청했거나 불안정한 배포판을 사용하는 경우 일부 필수 패키지가 아직 생성되지 않았거나 이동되었음을 의미할 수 있습니다. 다음 정보는 문제를 해결하는 데 도움이 될 수 있습니다.
The following packages have unmet dependencies:
init : PreDepends: systemd-sysv but it is not going to be installed or
sysvinit-core but it is not going to be installed or
upstart
libc6 : Breaks: libc6:armhf (!= 2.19-19) but 2.19-18+deb8u1 is to be installed
libc6:armhf : Breaks: libc6 (!= 2.19-18+deb8u1) but 2.19-19 is to be installed
libcurl3-gnutls : Depends: libgnutls-deb0-28 (>= 3.3.0) but it is not going to be installed
Depends: libldap-2.4-2 (>= 2.4.7) but it is not going to be installed
Depends: librtmp1 (>= 2.4+20131018.git79459a2-3~) but it is not going to be installed
Depends: libssh2-1 (>= 1.2.6) but it is not going to be installed
Recommends: ca-certificates but it is not going to be installed
libqt5core5a : Depends: libglib2.0-0 (>= 2.22.0) but it is not going to be installed
Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed
libqt5gui5 : Depends: fontconfig
Depends: libegl1-mesa (>= 7.8.1) but it is not going to be installed or
libegl1-x11
Depends: libfontconfig1 (>= 2.11) but it is not going to be installed
Depends: libgbm1 (>= 8.1~0) but it is not going to be installed
Depends: libgl1-mesa-glx but it is not going to be installed or
libgl1
Depends: libglib2.0-0 (>= 2.12.0) but it is not going to be installed
Depends: libgtk2.0-0 (>= 2.24.0) but it is not going to be installed
Depends: libharfbuzz0b (>= 0.9.11) but it is not going to be installed
Depends: libice6 (>= 1:1.0.0) but it is not going to be installed
Depends: libpango-1.0-0 (>= 1.14.0) but it is not going to be installed
Depends: libsm6 but it is not going to be installed
Depends: libx11-6 but it is not going to be installed
Depends: libx11-xcb1 but it is not going to be installed
Depends: libxcb-glx0 but it is not going to be installed
Depends: libxcb-icccm4 (>= 0.4.1) but it is not going to be installed
Depends: libxcb-image0 (>= 0.2.1) but it is not going to be installed
Depends: libxcb-keysyms1 (>= 0.4.0) but it is not going to be installed
Depends: libxcb-randr0 (>= 1.3) but it is not going to be installed
Depends: libxcb-render-util0 but it is not going to be installed
Depends: libxcb-render0 but it is not going to be installed
Depends: libxcb-shape0 but it is not going to be installed
Depends: libxcb-shm0 but it is not going to be installed
Depends: libxcb-sync1 but it is not going to be installed
Depends: libxcb-xfixes0 but it is not going to be installed
Depends: libxcb-xkb1 but it is not going to be installed
Depends: libxcb1 but it is not going to be installed
Depends: libxi6 (>= 2:1.2.99.4) but it is not going to be installed
Depends: libxkbcommon-x11-0 (>= 0.4.0) but it is not going to be installed
Depends: libxrender1 but it is not going to be installed
libqt5widgets5 : Depends: libglib2.0-0 (>= 2.12.0) but it is not going to be installed
Depends: libx11-6 but it is not going to be installed
libssl1.0.0 : Depends: debconf (>= 0.5) but it is not going to be installed or
debconf-2.0
live-config-sysvinit : Depends: sysvinit-core but it is not going to be installed or
sysvinit (< 2.88dsf-44) but it is not going to be installed
nginx-common : Depends: init-system-helpers (>= 1.18~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
답변1
libc6 : Breaks: libc6:armhf (!= 2.19-19) but 2.19-18+deb8u1 is to be installed libc6:armhf : Breaks: libc6 (!= 2.19-18+deb8u1) but 2.19-19 is to be installed
데비안의 다중 아키텍처 규칙 중 하나는 버전이 아키텍처 전체에서 정확히 일치해야 한다는 것입니다. Debian jessie 버전이 있지만 2.19-18+deb8u1
어떻게든 2.19-19
amd64(및 아마도 i386)를 설치하게 됩니다.
처음에 귀하의 시스템이 어떻게 이 상태가 되었는지 모르겠습니다. 어쩌면 어느 시점에서 귀하 또는 이전 관리자가 테스트용으로 변경한 sources.list
다음 다시 Jesse로 변경했을 수도 있습니다.
snapshot.debian.org에서 armhf 2.19-19를 다운로드하고 dpkg를 사용하여 수동으로 설치하는 것이 해결책일 수 있습니다.
http://snapshot.debian.org/archive/debian/20150710T034220Z/pool/main/g/glibc/libc6_2.19-19_armhf.deb