![Linux 크로스빌드 필수 armhf 깨진 패키지](https://linux55.com/image/219783/Linux%20%ED%81%AC%EB%A1%9C%EC%8A%A4%EB%B9%8C%EB%93%9C%20%ED%95%84%EC%88%98%20armhf%20%EA%B9%A8%EC%A7%84%20%ED%8C%A8%ED%82%A4%EC%A7%80.png)
내 Raspberry Pi Linux 커널에 Linux 커널을 설치하고 설정하려고 합니다. 다음 웹사이트를 참고했습니다.https://www.raspberrypi.com/documentation/computers/linux_kernel.html.
지금까지 Raspberry Pi에서 다음 명령을 이 순서대로 실행했습니다.
- sudo 적절한 업데이트
- sudo 적절한 업그레이드
- sudo apt-get 자동 삭제
- sudo apt 설치 git bc bison flex libssl-dev make
- git clone --깊이=1https://github.com/raspberrypi/linux
- cd linux KERNEL=kernel7 make bcm2709_defconfig
- make -j4 zImage 모듈 dtbs
- sudo 활성화 module_install
- sudo cp 아치/arm/boot/dts/*.dtb /boot/
- sudo cp 아치/arm/boot/dts/overlays/.dtb/시작/덮어쓰기/
- sudo cp 아치/arm/boot/dts/overlays/README /boot/overlays/
- sudo cp 아치/arm/boot/zImage /boot/$KERNEL.img
- sudo apt 설치 git bc bison flex libssl-dev make libc6-dev libncurses5-dev
- sudo apt install crossbuild-essential-armhf
그러나 14번 지점에서 명령을 실행하는 동안 다음과 같은 오류가 발생했습니다.
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:
crossbuild-essential-armhf : Depends: gcc-arm-linux-gnueabihf (>= 5.3) but it is not going to be installed
Depends: g++-arm-linux-gnueabihf (>= 5.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
답변1
종속성을 설치하려고 하면 설치되지 않는다는 메시지가 나타납니다. 예를 들어:
sudo apt 설치 gcc-arm-linux-gnueabihf
결국 apt는 "다음에 따라 다름: [패키지]를 설치할 수 없습니다."와 같은 메시지를 표시합니다.
답변2
어떤 버전의 Raspberry Pi 운영 체제를 사용하고 있나요? 최신 Raspberry OS 버전을 사용하면 이러한 문제를 피할 수 있습니다.
어쨌든 먼저 시도해 보겠습니다.
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install g++-arm-linux-gnueabihf
sudo apt --fix-broken install