Fishwaldo / sophgo-sg200x-debian

Debian Image for SG200x based boards such as Milk Duo256/DuoS and Sipeed LicheeRVNano
98 stars 24 forks source link

Podman failing on dpkg #10

Closed mjdunn closed 5 months ago

mjdunn commented 5 months ago

Tried this on ubuntu 22.04 and debian sid:

podman run --privileged -it --rm -v ./configs/:/configs -v ./image:/output ghcr.io/fishwaldo/sophgo-sg200x-debian:master make BOARD=duos image

results in:

...
/usr/bin/dpkg --status-fd 9 --no-triggers --configure sysvinit-utils:riscv64 
/usr/bin/dpkg --status-fd 9 --configure --pending 
Fetched 30.5 MB in 2s (15.5 MB/s)
I: extracting archives...
I: installing essential packages...
chroot: failed to run command ‘dpkg’: No such file or directory
E: setup failed: E: env --unset=APT_CONFIG --unset=TMPDIR chroot /rootfs dpkg --install --force-depends --status-fd=<$fd> /var/cache/apt/archives/gcc-14-base_14.1.0-1_riscv64.deb /var/cache/apt/archives/libc6_2.38-11_riscv64.deb /var/cache/apt/archives/libgcc-s1_14.1.0-1_riscv64.deb /var/cache/apt/archives/mawk_1.3.4.20240123-1_riscv64.deb /var/cache/apt/archives/base-files_13.2_riscv64.deb /var/cache/apt/archives/libtinfo6_6.5-2_riscv64.deb /var/cache/apt/archives/debianutils_5.17_riscv64.deb /var/cache/apt/archives/bash_5.2.21-2+b2_riscv64.deb /var/cache/apt/archives/libcap2_1%3a2.66-5_riscv64.deb /var/cache/apt/archives/libsystemd0_256~rc3-2_riscv64.deb /var/cache/apt/archives/bsdutils_1%3a2.40.1-1_riscv64.deb /var/cache/apt/archives/libacl1_2.3.2-2_riscv64.deb /var/cache/apt/archives/libattr1_1%3a2.5.2-1_riscv64.deb /var/cache/apt/archives/libgmp10_2%3a6.3.0+dfsg-2+b1_riscv64.deb /var/cache/apt/archives/libpcre2-8-0_10.42-4+b1_riscv64.deb /var/cache/apt/archives/libselinux1_3.5-2+b2_riscv64.deb /var/cache/apt/archives/libzstd1_1.5.5+dfsg2-2+b1_riscv64.deb /var/cache/apt/archives/zlib1g_1%3a1.3.dfsg+really1.3.1-1_riscv64.deb /var/cache/apt/archives/libssl3t64_3.2.1-3_riscv64.deb /var/cache/apt/archives/coreutils_9.4-3.1_riscv64.deb /var/cache/apt/archives/dash_0.5.12-8_riscv64.deb /var/cache/apt/archives/diffutils_1%3a3.10-1+b1_riscv64.deb /var/cache/apt/archives/libbz2-1.0_1.0.8-5.1_riscv64.deb /var/cache/apt/archives/liblzma5_5.6.1+really5.4.5-1_riscv64.deb /var/cache/apt/archives/libmd0_1.1.0-2_riscv64.deb /var/cache/apt/archives/tar_1.35+dfsg-3_riscv64.deb /var/cache/apt/archives/dpkg_1.22.6_riscv64.deb /var/cache/apt/archives/findutils_4.9.0-5+b2_riscv64.deb /var/cache/apt/archives/grep_3.11-4_riscv64.deb /var/cache/apt/archives/gzip_1.12-1.1_riscv64.deb /var/cache/apt/archives/hostname_3.23+nmu2_riscv64.deb /var/cache/apt/archives/libaudit-common_1%3a3.1.2-2.1_all.deb /var/cache/apt/archives/libcap-ng0_0.8.5-1_riscv64.deb /var/cache/apt/archives/libaudit1_1%3a3.1.2-2.1_riscv64.deb /var/cache/apt/archives/libcrypt1_1%3a4.4.36-4_riscv64.deb /var/cache/apt/archives/debconf_1.5.86_all.deb /var/cache/apt/archives/libpam0g_1.5.3-7_riscv64.deb /var/cache/apt/archives/libdb5.3t64_5.3.28+dfsg2-7_riscv64.deb /var/cache/apt/archives/libpam-modules-bin_1.5.3-7_riscv64.deb /var/cache/apt/archives/libpam-modules_1.5.3-7_riscv64.deb /var/cache/apt/archives/libpam-runtime_1.5.3-7_all.deb /var/cache/apt/archives/login_1%3a4.13+dfsg1-4_riscv64.deb /var/cache/apt/archives/ncurses-bin_6.5-2_riscv64.deb /var/cache/apt/archives/perl-base_5.38.2-4_riscv64.deb /var/cache/apt/archives/sed_4.9-2_riscv64.deb /var/cache/apt/archives/libblkid1_2.40.1-1_riscv64.deb /var/cache/apt/archives/libmount1_2.40.1-1_riscv64.deb /var/cache/apt/archives/libsmartcols1_2.40.1-1_riscv64.deb /var/cache/apt/archives/libudev1_256~rc3-2_riscv64.deb /var/cache/apt/archives/libuuid1_2.40.1-1_riscv64.deb /var/cache/apt/archives/util-linux_2.40.1-1_riscv64.deb /var/cache/apt/archives/libdebconfclient0_0.271+b3_riscv64.deb /var/cache/apt/archives/base-passwd_3.6.3+b1_riscv64.deb /var/cache/apt/archives/perl-modules-5.38_5.38.2-4_all.deb /var/cache/apt/archives/libgdbm6t64_1.23-5.1+b1_riscv64.deb /var/cache/apt/archives/libgdbm-compat4t64_1.23-5.1+b1_riscv64.deb /var/cache/apt/archives/libperl5.38t64_5.38.2-4_riscv64.deb /var/cache/apt/archives/perl_5.38.2-4_riscv64.deb /var/cache/apt/archives/libnumber-compare-perl_0.03-3_all.deb /var/cache/apt/archives/libtext-glob-perl_0.11-3_all.deb /var/cache/apt/archives/libfile-find-rule-perl_0.34-3_all.deb /var/cache/apt/archives/usrmerge_39_all.deb /var/cache/apt/archives/init-system-helpers_1.66_all.deb /var/cache/apt/archives/libc-bin_2.38-11_riscv64.deb /var/cache/apt/archives/ncurses-base_6.5-2_all.deb /var/cache/apt/archives/sysvinit-utils_3.09-1_riscv64.deb failed
W: hooklistener errored out: E: received eof on socket

I: main() received signal PIPE: waiting for setup...
E: mmdebstrap failed to run
make: *** [Makefile:201: /build//image-prepare-stamp] Error 29
mjdunn commented 5 months ago

I think my issue was that I didn't have binfmt-misc setup the way it needed to be. Following this guide (and changing arm to riscv64) got me past this error.