![尝试创建 Debian ARM64 的 Rootfs 时出现 qemu-debootstrap 错误](https://linux22.com/image/198268/%E5%B0%9D%E8%AF%95%E5%88%9B%E5%BB%BA%20Debian%20ARM64%20%E7%9A%84%20Rootfs%20%E6%97%B6%E5%87%BA%E7%8E%B0%20qemu-debootstrap%20%E9%94%99%E8%AF%AF.png)
我正在尝试从 Debian 的最新稳定版本创建一个根文件系统,deboostrap
用于ARM64
架构AARCH64
。我正在使用 Debian 的 wikiArm64端口作为基础,在解决方案中提到了类似的问题。但是,当我尝试从 Ubuntu 主机创建 rootfs 时,我收到下一个错误
$ qemu-debootstrap --arch=arm64 --keyring /usr/share/keyrings/debian-archive-keyring.gpg --variant=buildd --exclude=debfoster stable debian-arm64/ http://deb.debian.org/debian/
I: Running command: debootstrap --arch arm64 --foreign --keyring /usr/share/keyrings/debian-archive-keyring.gpg --variant=buildd --exclude=debfoster stable debian-arm64/ http://deb.debian.org/debian/
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 0146DC6D4A0B2914BDED34DB648ACFD622F3D138)
I: Retrieving Packages
I: Validating Packages
....
I: Running command: chroot debian-arm64/ /debootstrap/debootstrap --second-stage
W: Failure trying to run: /sbin/ldconfig
正如您所看到的,问题出在系统发送的完成 Rootfs 进程的最后命令中,但我不确定为什么尝试在/sbin/ldconfig
rootfs 内部运行时出现问题。
我的想法是创建一个可启动 SD 卡来启动 ARM 处理器。我已经编译了设备树和自定义内核,但ext4
由于这个问题,我无法使用 rootfs 创建系统。
感谢您的帮助。
PS:我对架构测试了相同的命令amd64
,没有任何问题。
编辑:这是最后几行debootstrap.log
:
2021-11-12 16:17:02 URL:http://deb.debian.org/debian/pool/main/u/util-linux/util-linux_2.36.1-8_arm64.deb [1096992/1096992] -> "/home/jairom/Downloads/debian-arm64//var/cache/apt/archives/partial/util-linux_2.36.1-8_arm64.deb" [1]
2021-11-12 16:17:02 URL:http://deb.debian.org/debian/pool/main/x/xxhash/libxxhash0_0.8.0-2_arm64.deb [18544/18544] -> "/home/jairom/Downloads/debian-arm64//var/cache/apt/archives/partial/libxxhash0_0.8.0-2_arm64.deb" [1]
2021-11-12 16:17:02 URL:http://deb.debian.org/debian/pool/main/x/xz-utils/liblzma5_5.2.5-2_arm64.deb [164528/164528] -> "/home/jairom/Downloads/debian-arm64//var/cache/apt/archives/partial/liblzma5_5.2.5-2_arm64.deb" [1]
2021-11-12 16:17:02 URL:http://deb.debian.org/debian/pool/main/x/xz-utils/xz-utils_5.2.5-2_arm64.deb [218740/218740] -> "/home/jairom/Downloads/debian-arm64//var/cache/apt/archives/partial/xz-utils_5.2.5-2_arm64.deb" [1]
2021-11-12 16:17:02 URL:http://deb.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.11.dfsg-2_arm64.deb [87944/87944] -> "/home/jairom/Downloads/debian-arm64//var/cache/apt/archives/partial/zlib1g_1%3a1.2.11.dfsg-2_arm64.deb" [1]
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)