apk-tools-static: option -X missing
I was following this wiki page https://wiki.alpinelinux.org/wiki/Alpine_Linux_in_a_chroot, but when I got to installing the Alpine, I got the following error output:
phablet@ubuntu-phablet:/mnt$ ./sbin/apk.static -X http://nl.alpinelinux.org/alpine/edge/main -U --allow-untrusted --root alpine-armv7 --initdb add alpine-base
./sbin/apk.static: unrecognized option: X
ERROR: unsatisfiable constraints:
add (missing):
required by: world[add]
alpine-base (missing):
required by: world[alpine-base]
http://nl.alpinelinux.org/alpine/edge/main (missing):
required by: world[http://nl.alpinelinux.org/alpine/edge/main]
phablet@ubuntu-phablet:/mnt$ ./sbin/apk.static -X ${mirror}/latest-stable/main -U --allow-untrusted --root ${chroot_dir} --initdb add alpine-base
./sbin/apk.static: unrecognized option: X
ERROR: Unable to open root: No such file or directory
ERROR: Failed to open apk database: No such file or directory
This is related to some recent update since I already did the thing before, a month or two ago.