alpinelinux / alpine-chroot-install

Install Alpine Linux in chroot with a breeze. Build ARM on Travis CI or any other x86_64 CI.
MIT License
290 stars 59 forks source link

Cant run with -a armhf #13

Closed Suppresed closed 4 years ago

Suppresed commented 6 years ago

I tried sudo ./alpine-chroot-install -a armhf and the output was


> Installing and enabling binfmt-support on host system...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
binfmt-support is already the newest version (2.1.8-2).
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
'/usr/bin/qemu-arm-static' -> 'usr/bin/qemu-arm-static'

> Downloading static apk-tools
2018-09-06 11:32:50 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/56234603/98fba9ac-77ea-11e8-8e46-5124ca96382c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180906%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180906T163247Z&X-Amz-Expires=300&X-Amz-Signature=3b9b8ace08dbff27c7e0e00e71316dc2be59354f0e536014f164d9ef1fd7e05b&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dapk-tools-2.10.0-x86_64-linux.tar.gz&response-content-type=application%2Foctet-stream [816670/816670] -> "apk-tools-2.10.0-x86_64-linux.tar.gz" [1]
apk-tools-2.10.0-x86_64-linux.tar.gz: OK

> Installing Alpine Linux v3.8 (armhf) into chroot
fetch https://nl.alpinelinux.org/alpine/v3.8/main/armhf/APKINDEX.tar.gz
fetch https://nl.alpinelinux.org/alpine/v3.8/community/armhf/APKINDEX.tar.gz
(1/18) Installing musl (1.1.19-r10)
(2/18) Installing busybox (1.28.4-r1)
Executing busybox-1.28.4-r1.post-install
ERROR: busybox-1.28.4-r1.post-install: script exited with error 127
(3/18) Installing alpine-baselayout (3.1.0-r0)
Executing alpine-baselayout-3.1.0-r0.pre-install
ERROR: alpine-baselayout-3.1.0-r0.pre-install: script exited with error 127
Executing alpine-baselayout-3.1.0-r0.post-install
ERROR: alpine-baselayout-3.1.0-r0.post-install: script exited with error 127
(4/18) Installing openrc (0.35.5-r4)
Executing openrc-0.35.5-r4.post-install
ERROR: openrc-0.35.5-r4.post-install: script exited with error 127
(5/18) Installing alpine-conf (3.8.0-r0)
(6/18) Installing libressl2.7-libcrypto (2.7.4-r0)
(7/18) Installing libressl2.7-libssl (2.7.4-r0)
(8/18) Installing libressl2.7-libtls (2.7.4-r0)
(9/18) Installing ssl_client (1.28.4-r1)
(10/18) Installing zlib (1.2.11-r1)
(11/18) Installing apk-tools (2.10.0-r3)
(12/18) Installing busybox-suid (1.28.4-r1)
(13/18) Installing busybox-initscripts (3.1-r3)
Executing busybox-initscripts-3.1-r3.post-install
ERROR: busybox-initscripts-3.1-r3.post-install: script exited with error 127
(14/18) Installing scanelf (1.2.3-r0)
(15/18) Installing musl-utils (1.1.19-r10)
(16/18) Installing libc-utils (0.7.1-r0)
(17/18) Installing alpine-keys (2.1-r1)
(18/18) Installing alpine-base (3.8.0-r0)
Executing busybox-1.28.4-r1.trigger
ERROR: busybox-1.28.4-r1.trigger: script exited with error 127
4 errors; 6 MiB in 18 packages

On ubuntu 18.04.1

Suppresed commented 6 years ago

I manually removed qemu-user-static using apt-get remove qemu-* and manually reinstalled using apt-get install qemu-user-binfmt just to then re issue ./alpine-chroot-install and let it install qemu-user-static.

It fixed it.

I also deleted /tmp/alpine before all of that above.

CvH commented 4 years ago

@Suppresed tx, the same is still needed at an completely clean Ubuntu 18.04 and 19.04 ... so the official way could considered broken for at least Ubuntu

katyo commented 3 years ago

I have same issue too.