hetzneronline / installimage

Bash scripts to universally deploy various distributions
Other
517 stars 143 forks source link

syntax error when trying to setup LUKS #77

Closed Sinderella closed 10 months ago

Sinderella commented 1 year ago

Hello, I'm trying to setup LUKS on my new cloud instance, but I've got the following message.

[22:06:31] # setting up /etc/netplan/01-netcfg.yaml
[22:06:31] :   chroot: failed to run command ‘/usr/bin/env’: Exec format error
[22:06:31] :   /root/.oldroot/nfs/install/network_config.functions.sh: line 176: ((: < 226: syntax error: operand expected (error token is "< 226")
[22:06:32] :   configuring dhcpv4 for
[22:06:32] :   configuring ipv6 addr <redacted ipv6>for
[22:06:32] :   chroot: failed to run command ‘/usr/bin/env’: Exec format error
[22:06:32] fatal: can not query netplan version
[22:06:32] => FAILED

I was following the following instruction, but with a bit of modification as my system is in UEFI mode. (I added PART /boot/efi esp 256M, not sure if I am supposed to do that.)

https://community.hetzner.com/tutorials/install-ubuntu-2004-with-full-disk-encryption

asciiprod commented 10 months ago

It looks like you are trying to install an x64 image on arm64. Please adjust the image file name to reference the correct image.