Jump to content

hex_messer

Members
  • Posts

    2
  • Joined

  • Last visited

  1. oh, I figured out, how it should be coded to select regions : # Mirrors for each region for region in $(wget -qO- "${url}/mirrors" | jq -r 'keys' | jq -r '.[]' | sort | grep -v default); do LIST+=( "${#mirrors[@]}" "Region ${region}" ) mirrors+=( "${url}/region/${region}/" ) done And now it looks like this in armbian-config: Configuration utility, Armbian 23.11.1 stable, 10.0.2.15 ───────────────────────────────────────────────────────────────────────────────── ┌──────────────────── Select APT mirror ──────────────────────┐ │ Select mirror │ │ ┌─────────────────────────────────────────────────────────┐ │ │ │ 0 Automated │ │ │ │ 1 Region AS │ │ │ │ 2 Region EU │ │ │ │ 3 Region NA │ │ │ │ 4 Region OC │ │ │ │ 5 http://armbian.chi.auroradev.org/apt/ │ │ │ │ 6 http://armbian.hosthatch.com/apt/ │ │ │ │ 7 http://armbian.lv.auroradev.org/apt/ │ │ │ │ 8 http://armbian.systemonachip.net/apt/ │ │ │ │ 9 http://armbian.tnahosting.net/apt/ │ │ │ │ 10 http://au.sbcmirror.org/armbian/apt/ │ │ │ │ 11 http://fastmirror.pp.ua/armbian/ │ │ │ └────↓(+)─────────────────────────────────────────30%─────┘ │ ├─────────────────────────────────────────────────────────────┤ │ < OK > <Cancel> │ └─────────────────────────────────────────────────────────────┘ I hope, this should be posted somewhere to be corrected in mainstream code, how and where to do it?
  2. my "5 cents"... correct way, as it was noticed already, to choose region in apt sources file, like in this forum post and corresponding docs page https://docs.armbian.com/User-Guide_Fine-Tuning/#choosing-an-apt-mirror And about armbian-config... For now, 08 feb 2024, image Armbian_23.11.1_Uefi-x86_bookworm_current_6.1.63_xfce_desktop.img armbian-config in my case shows only one line in mirrors selection list: "0 - Automated" This is because for now url http://apt.armbian.com/regions is defunct, and, consequently, in armbian-config code in file /usr/lib/armbian-config/jobs.sh part of code for acquiring mirrors can be (temporarily) corrected like this: ....... "Mirrors") # Default automated mirror url="http://apt.armbian.com" LIST=( "0" "Automated" ) mirrors=( "${url}" ) ## Mirrors for each region #for region in $(wget -qO- "${url}/regions" | jq -r '.[]' | sort | grep -v default); do # LIST+=( "${#mirrors[@]}" "Region ${region}" ) # mirrors+=( "${url}/region/${region}/" ) #done # Individual mirrors for mirror in $(wget -qO- "${url}/mirrors" | jq -r '.[] | .[]' | sort | uniq); do LIST+=( "${#mirrors[@]}" "${mirror}" ) mirrors+=( "${mirror}" ) done ...... this way mirrors extracted from http://apt.armbian.com/mirrors and displayed correctly.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines