On 5/4/25 3:12 PM, Doug Newgard wrote:
On 5/4/25 8:20 AM, Pocket wrote:
I am getting this error when running is there a way to fix this?

We aren't the ones to be asking. Arch is x86_64 only, ArchLinuxARM is a separate distro with it's own repositories.


This is what I believe is breaking the mirrorlist

From arch-nspawn

# shellcheck disable=2016
host_mirrors=($(pacman-conf --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#'))

for host_mirror in "${host_mirrors[@]}"; do
        if [[ $host_mirror == *file://* ]]; then
host_mirror=$(echo "$host_mirror" | sed -r 's#file://(/.*)/\$repo/os/\$arch#\1#g')
                for m in "$host_mirror"/pool/*/; do
                        in_array "$m" "${cache_dirs[@]}" || cache_dirs+=("$m")
                done
        fi
done

# {{{ functions
copy_hostconf () {
unshare --fork --pid gpg --homedir "$working_dir"/etc/pacman.d/gnupg/ --no-permission-warning --quiet --batch --import --import-options import-local-sigs "$(pacman-conf GpgDir)"/pubring.gpg >/dev/null 2>&1 pacman-key --gpgdir "$working_dir"/etc/pacman.d/gnupg/ --import-trustdb "$(pacman-conf GpgDir)" >/dev/null 2>&1

printf 'Server = %s\n' "${host_mirrors[@]}" >"$working_dir/etc/pacman.d/mirrorlist"

        [[ -n $pac_conf ]] && cp "$pac_conf" "$working_dir/etc/pacman.conf"
[[ -n $makepkg_conf ]] && cp "$makepkg_conf" "$working_dir/etc/makepkg.conf"

I don't know why that is there, I expected arch-nspawn to just spawn a container.


--
Hindi madali ang maging ako

Reply via email to