How to change mirrors while make iso


I want to build vyos iso.
As I’am in Chinese mainland, network to is poor.
So I want to change mirrors but it didn’t work well. Is there anyone can help me? thanks!

  1. I changed mirrors in configure:
./configure --debian-mirror --architecture amd64 --build-by "" --debian-security-mirror  --pbuilder-debian-mirror
Loading data/defaults.json
  1. I checked the build/build-config.json:
    "architecture": "amd64",
    "bootloaders": "syslinux,grub-efi",
    "build_by": "",
    "build_comment": "",
    "build_dir": "build",
    "build_type": "development",
    "custom_apt_entry": [
        "deb [arch=amd64] bullseye main",
        "deb [arch=amd64] bullseye-rec-45 main",
        "deb [arch=amd64] bullseye stable"
    "custom_apt_key": null,
    "custom_package": [],
    "debian_mirror": "",
    "debian_security_mirror": "",
    "debug": false,
    "distribution": "bullseye",
    "kernel_flavor": "amd64-vyos",
    "kernel_version": "5.10.127",
    "pbuilder_config": "build/pbuilderrc",
    "pbuilder_debian_mirror": "",
    "release_train": "sagitta",
    "version": null,
    "vyos_branch": "current",
    "vyos_mirror": ""

  1. It speed up at first. However I noticed output like this:
Get:2 buster/updates InRelease [65.4 kB]
Hit:1 bullseye InRelease
Get:3 buster InRelease [122 kB]
Get:4 bullseye-updates InRelease [39.4 kB]
Get:5 bullseye-backports InRelease [44.2 kB]
Get:6 bullseye/non-free Sources [80.6 kB]
Get:7 bullseye/contrib Sources [43.0 kB]
Get:8 bullseye/main Sources [8627 kB]
Get:9 bullseye InRelease [4739 B]
Get:10 buster/updates/main amd64 Packages [329 kB]
Get:11 bullseye InRelease [2850 B]
Get:12 current InRelease [4189 B]
Get:13 bullseye/stable amd64 Packages [1259 B]
Get:14 buster-updates InRelease [51.9 kB]
Get:15 bullseye/main amd64 Packages [2917 B]
Get:16 bullseye-rec-45 InRelease [1798 B]
Get:17 current/main amd64 Packages [43.4 kB]
Get:18 bullseye-rec-45/main amd64 Packages [842 B]
Get:19 buster/main amd64 Packages [7911 kB]
Get:20 bullseye/main Translation-en [6241 kB]
Get:21 bullseye/contrib Translation-en [46.9 kB]
Get:22 bullseye/non-free Translation-en [91.3 kB]
Get:23 bullseye-updates/main Sources [1868 B]
Get:24 bullseye-updates/main amd64 Packages [2592 B]
Get:25 bullseye-updates/main Translation-en [2343 B]
Get:26 bullseye-backports/main Sources [289 kB]
Get:27 bullseye-backports/non-free Sources [3548 B]
Get:28 bullseye-backports/contrib Sources [2556 B]
Get:29 bullseye-backports/main amd64 Packages [304 kB]
Get:30 bullseye-backports/main Translation-en [234 kB]
Get:31 bullseye-backports/contrib amd64 Packages [4704 B]
Get:32 bullseye-backports/contrib Translation-en [4196 B]
Get:33 bullseye-backports/non-free amd64 Packages [11.0 kB]
Get:34 bullseye-backports/non-free Translation-en [8252 B]
Get:35 buster/updates/main Translation-en [178 kB]
Get:36 buster/updates/non-free amd64 Packages [556 B]
Get:37 buster/updates/non-free Translation-en [344 B]
Get:38 buster/main Translation-en [5969 kB]
Ign:38 buster/main Translation-en
Get:39 buster/non-free amd64 Packages [87.7 kB]
Get:40 buster/non-free Translation-en [88.8 kB]
Get:41 buster-updates/main amd64 Packages [8788 B]
Get:42 buster-updates/main Translation-en [6915 B]
Get:38 buster/main Translation-en [5969 kB]

Ign:38 buster/main Translation-en
Ign:38 buster/main Translation-en
Err:38 buster/main Translation-en
  Connection timed out [IP: 80]
Fetched 25.0 MB in 8min 52s (47.0 kB/s)
Reading package lists...
E: Failed to fetch  Connection timed out [IP: 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
make: *** [Makefile:32: iso] Error 1

I have the problem done, just modify this file:

cat data/live-build-config/archives/buster.list.chroot

deb buster main non-free
deb buster-updates main non-free
deb buster/updates main non-free

By the way, how to close the subject?

1 Like

Just in case, these configurations are not saved after a reboot.
You can use /config/scripts/vyos-postconfig-bootup.script

1 Like


What you said is a new knowledge point for me!