Package: debootstrap
Version: 1.0.141
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

On CachyOS and non-standard Archlinux installations deboostrap would always 
fail with the following message:

Unknown architecture: x86_64
x86_64_v2
x86_64_v3
x86_64_v4

I'm including a patch that solves this issue 

--- debootstrap 2026-01-15 16:37:07.647209522 +0400
+++ debootstrap-cachy   2026-01-15 16:42:36.823234564 +0400
@@ -569,7 +569,7 @@
 elif [ -e "$DEBOOTSTRAP_DIR/arch" ]; then
        HOST_ARCH=$(cat "$DEBOOTSTRAP_DIR/arch")
 elif in_path pacman-conf; then
-       CARCH=$(pacman-conf Architecture)
+       CARCH=$(pacman-conf Architecture | head -n 1)
        case $CARCH in
                i686)    HOST_ARCH=i386 ;;
                x86_64)  HOST_ARCH=amd64 ;;

-- System Information:
Debian Release: 13.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.63+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debootstrap depends on:
ii  distro-info  1.13
ii  wget         1.25.0-2

Versions of packages debootstrap recommends:
ii  arch-test               0.22-1
ii  debian-archive-keyring  2025.1
ii  mount                   2.41-5
ii  sqv                     1.3.0-3+b2

Versions of packages debootstrap suggests:
pn  binutils                <none>
pn  squid-deb-proxy-client  <none>
pn  ubuntu-archive-keyring  <none>
ii  xz-utils                5.8.1-1
ii  zstd                    1.5.7+dfsg-1

-- no debconf information

Reply via email to