AMD64 호스트에서 Raspberry Pi 4B/3B용 Debian 패키지를 빌드하기 위해 Raspberry Pi OS(ARM64)용 pBuilder chroot 환경을 만들려고 합니다.
관련성이 있는 것으로 보이는 튜토리얼을 찾았습니다.https://jod.al/2015/03/08/building-arm-debs-with-pbuilder/. 그러나 오래된 것 같으며 업데이트된 리소스를 찾을 수 없습니다.
빌드 환경을 설정하기 위해 저는 이 조사의 모든 후속 단계에서 사용할 Vagrant 상자를 사용했습니다.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.provision "shell", path: "bootstrap.sh"
config.vm.provider 'virtualbox' do |vb|
vb.memory = 2048
vb.cpus = 2
end
end
Bootstrap.sh 스크립트:
#!/bin/bash
sudo apt-get update
sudo apt-get install -y \
debian-archive-keyring \
devscripts \
dh-make \
dh-python \
pbuilder \
python3-all-dev \
python3-setuptools \
qemu-user-static \
ubuntu-keyring
나는 "일반" 데비안 chroot를 성공적으로 만들었습니다:
sudo OS=debian pbuilder create \
--distribution bullseye \
--mirror http://ftp.de.debian.org/debian/ \
--architecture arm64
이제 Raspberry Pi OS chroot를 만들려고 합니다.
# Get and install apt keyring
wget https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-archive-keyring/raspberrypi-archive-keyring_2021.1.1+rpt1_all.deb
sudo dpkg -i raspberrypi-archive-keyring_2021.1.1+rpt1_all.deb
# Create pBuilder chroot
sudo OS=debian pbuilder create \
--distribution bullseye \
--mirror https://archive.raspberrypi.org/debian \
--debootstrapopts --keyring=/usr/share/keyrings/raspberrypi-archive-keyring.gpg \
--architecture arm64
그러나 "Cannot find this debs: ca-certificates build-essential apt"로 인해 실패합니다.
W: /root/.pbuilderrc does not exist
I: Distribution is bullseye.
I: Current time: Mon Jul 3 10:49:50 UTC 2023
I: pbuilder-time-stamp: 1688381390
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id CF8A1AF502A2AA2D763BAE7E82B129927FA3303E)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on https://archive.raspberrypi.org/debian...
E: Couldn't find these debs: ca-certificates build-essential apt
E: debootstrap failed
E: Tail of debootstrap.log:
2023-07-03 10:49:51 URL:https://archive.raspberrypi.org/debian/dists/bullseye/InRelease [23602/23602] -> "/var/cache/pbuilder/build/32279/var/lib/apt/lists/partial/archive.raspberrypi.org_debian_dists_bullseye_InRelease" [1]
gpgv: Signature made Fri Jun 30 14:46:21 2023 UTC
gpgv: using RSA key CF8A1AF502A2AA2D763BAE7E82B129927FA3303E
gpgv: Good signature from "Raspberry Pi Archive Signing Key"
2023-07-03 10:49:51 URL:https://archive.raspberrypi.org/debian/dists/bullseye/main/binary-arm64/Packages.gz [307612/307612] -> "/var/cache/pbuilder/build/32279/var/lib/apt/lists/partial/archive.raspberrypi.org_debian_dists_bullseye_main_binary-arm64_Packages.gz" [1]
E: End of debootstrap.log
W: Aborting with an error
여기서 문제는 무엇이며 pBuilder chroot를 실행하는 데 필요한 단계는 무엇입니까?