--- a/scripts/Dpkg/Arch.pm 2026-10-14 12:41:34.752824615 +0800 +++ b/scripts/Dpkg/Arch.pm 2026-10-14 12:41:34.752929467 +0800 @@ -612,7 +612,10 @@ sub debarch_is_illegal { my ($arch, %opts) = @_; - my $arch_re = qr/[a-zA-Z0-9][a-zA-Z0-9-]*/; + # Termux/Android: allow underscores, because Termux names + # architectures after the GNU CPU name and x86_64 / aarch64 + # both contain one. + my $arch_re = qr/[a-zA-Z0-9][a-zA-Z0-9_-]*/; if ($opts{positive}) { return $arch !~ m/^$arch_re$/;