Skip to content

Commit 3fae4e5

Browse files
author
SecureOS Team
committed
Use US Ubuntu mirror for more reliable debootstrap
Main archive.ubuntu.com mirror failing during debootstrap. Using us.archive.ubuntu.com for better reliability.
1 parent 3efb5a3 commit 3fae4e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/build_iso.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ mkdir -p "$WORK_DIR"/{chroot,image/{casper,isolinux,install}}
6262

6363
# Bootstrap base system
6464
echo "[*] Bootstrapping base system..."
65-
debootstrap --arch=amd64 noble "$WORK_DIR/chroot" http://archive.ubuntu.com/ubuntu/
65+
debootstrap --arch=amd64 noble "$WORK_DIR/chroot" http://us.archive.ubuntu.com/ubuntu/
6666

6767
# Mount necessary filesystems
6868
echo "[*] Mounting filesystems..."
@@ -80,8 +80,8 @@ cp /etc/resolv.conf "$WORK_DIR/chroot/etc/resolv.conf"
8080
# Configure APT
8181
echo "[*] Configuring package repositories..."
8282
cat > "$WORK_DIR/chroot/etc/apt/sources.list" << EOF
83-
deb http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse
84-
deb http://archive.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse
83+
deb http://us.archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse
84+
deb http://us.archive.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse
8585
deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
8686
EOF
8787

0 commit comments

Comments
 (0)