Error on update is: “Temporary failure resolving ‘mirror.yandex.ru’”
I live in Ukraine and ‘yandex.ru’ is blocked so thinking I need to remove this as a mirror.
Sorry, I live in the city of Kherson and the shelling started again and the wife was yelling and I just wanted to ask the question before the power died again.
Anyway, sorry. Should of waited and filed the ticket properly. . I just am struggling with patients at the moment. Again, I am sorry.
So… Lets try this
Details:
Date | Wed Apr 5 16:33:37 BST 2023
DietPi version | v7.2.3 (MichaIng/master)
Image creator | DietPi Core Team
Pre-image | Armbian
Hardware | ROCK64 (aarch64) (ID=43)
Kernel version | Linux DietPi 5.10.35-rockchip64 #21.05.1 SMP PREEMPT Fri May 7 13:53:11 UTC 2021 aarch64 GNU/Linux
Distro | buster (ID=5)
Command | apt-get -qq upgrade
Exit code | 100
Software title | DietPi-Update
Steps to reproduce:
Live in Ukraine
Run the DietPi update program
Expected behaviour:
Update should run
…
Actual behaviour:
fails with error of not finding russian mirror.
…
Extra details:
Ukraine has blocked all Russian web sites. I also tried maybe run apt-get update or try with --fix-missing but the same issue. Did research and found that by removing the russian mirror from some file you can bypass the using the russian mirror web site. Just do not know where that file is.
…
Additional logs:
E: Failed to fetch http://apt.armbian.com/pool/main/a/armbian-firmware/armbian-firmware_23.02.2_all.deb Temporary failure resolving 'mirror.yandex.ru'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
It is the global apt package server for Armbian that has a pool of server behind. Something we don’t manage which server is selected. However, we could specify a dedicated mirror.
Let’s check where it is configured exactly as I’m not 100% sure on exact file name
for i in /etc/apt/sources.list{,.d/*.list}; do echo "$i:"; cat "$i"; done
ok one hint, try to avoid screen prints. Way better to copy /past thinks directly from SSH terminal
Try to adjust following /etc/apt/sources.list.d/armbian.list and adjust the package source from https://apt.armbian.com/ into http://mirrors.xtom.de/armbian/
Hit:10 http://ftp.us.debian.org/debian buster-backports InRelease
Fetched 499 kB in 4s (116 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
290 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://mirrors/xtom/de/armbian/dists/buster/InRelease Could not resolve 'mirrors'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@DietPi:~#
I see you configured backports, this will go to upgrade quite some packages (290) now. Are you sure this is intentional? Better to upgrade to Bullseye instead DietPi - How to upgrade to "Bullseye" - DietPi blog