initial commit

This commit is contained in:
2026-03-18 03:29:25 +08:00
commit 146c2c5f35
37 changed files with 1445 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud Alpine Mirror Setup"
echo "================================="
if [[ ! -f /etc/alpine-release ]]; then
echo "This script only supports Alpine."
exit 1
fi
echo "[1/3] Backing up repositories..."
cp /etc/apk/repositories /etc/apk/repositories.bak
ALPINE_VERSION=$(cut -d'.' -f1,2 /etc/alpine-release)
echo "[2/3] Writing mirror..."
cat > /etc/apk/repositories <<EOF
https://mirror.arvancloud.ir/alpine/v${ALPINE_VERSION}/main
https://mirror.arvancloud.ir/alpine/v${ALPINE_VERSION}/community
EOF
echo "[3/3] Updating package index..."
apk update
echo "Alpine mirror configured."

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud Arch Mirror Setup"
echo "================================="
if [[ ! -f /etc/arch-release ]]; then
echo "This script only supports Arch."
exit 1
fi
echo "[1/3] Backing up mirrorlist..."
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo "[2/3] Commenting existing mirrors..."
sed -i 's/^Server/#Server/g' /etc/pacman.d/mirrorlist
echo "[3/3] Adding ArvanCloud mirror..."
echo "Server = https://mirror.arvancloud.ir/archlinux/\$repo/os/\$arch" \
>> /etc/pacman.d/mirrorlist
pacman -Syyu
echo "Arch mirror configured."

View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud CentOS Mirror Setup"
echo "================================="
source /etc/os-release
echo "[1/3] Updating repo files..."
for f in /etc/yum.repos.d/*.repo; do
sed -i 's/^mirrorlist/#mirrorlist/g' "$f"
sed -i 's/^#baseurl/baseurl/g' "$f"
done
if [[ "$VERSION_ID" == "7" ]]; then
echo "[2/3] Setting ArvanCloud mirror for CentOS 7..."
sed -i 's|^baseurl=.*|baseurl=http://mirror.arvancloud.ir/centos/\$releasever/os/\$basearch/|' /etc/yum.repos.d/*.repo
elif [[ "$VERSION_ID" == "8" ]]; then
echo "[2/3] Setting ArvanCloud mirror for CentOS 8..."
sed -i 's|^baseurl=.*|baseurl=http://mirror.arvancloud.ir/\$contentdir/\$releasever/BaseOS/\$basearch/os/|' /etc/yum.repos.d/*.repo
echo "[3/3] Fixing releasever..."
echo "8-stream" > /etc/yum/vars/releasever
dnf update --allowerasing
fi
echo "CentOS mirror configured."

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud Debian Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "debian" ]]; then
echo "This script only supports Debian."
exit 1
fi
CODENAME="$VERSION_CODENAME"
echo "[1/3] Backing up sources.list..."
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "[2/3] Writing ArvanCloud mirror..."
cat > /etc/apt/sources.list <<EOF
deb http://mirror.arvancloud.ir/debian ${CODENAME} main
deb http://mirror.arvancloud.ir/debian-security ${CODENAME}-security main
EOF
echo "[3/3] Updating package index..."
apt update
echo "Debian mirror configured."

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud Manjaro Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "manjaro" ]]; then
echo "This script only supports Manjaro."
exit 1
fi
echo "[1/3] Backing up mirrorlist..."
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo "[2/3] Commenting existing mirrors..."
sed -i 's/^Server/#Server/g' /etc/pacman.d/mirrorlist
echo "[3/3] Adding ArvanCloud mirror..."
echo "Server = https://mirror.arvancloud.ir/manjaro/stable/\$repo/\$arch" \
>> /etc/pacman.d/mirrorlist
pacman -Syyu
echo "Manjaro mirror configured."

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud OpenSUSE Mirror Setup"
echo "================================="
if ! command -v zypper &> /dev/null; then
echo "This script only supports OpenSUSE."
exit 1
fi
source /etc/os-release
VERSION="$VERSION_ID"
echo "[1/2] Adding ArvanCloud repositories..."
for i in \
"http://mirror.arvancloud.ir/opensuse/debug/distribution/leap/${VERSION}/repo/oss/ Arvancloud-Debug" \
"http://mirror.arvancloud.ir/opensuse/distribution/leap/${VERSION}/repo/non-oss/ Arvancloud-Non-Oss" \
"http://mirror.arvancloud.ir/opensuse/distribution/leap/${VERSION}/repo/oss/ Arvancloud-Oss" \
"http://mirror.arvancloud.ir/opensuse/source/distribution/leap/${VERSION}/repo/oss/ Arvancloud-Source" \
"http://mirror.arvancloud.ir/opensuse/update/leap/${VERSION}/oss Arvancloud-Update"
do
zypper addrepo --priority 1 -f $i
done
echo "[2/2] Refreshing repositories..."
zypper refresh
echo "OpenSUSE mirror configured."

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " ArvanCloud Ubuntu Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "ubuntu" ]]; then
echo "This script only supports Ubuntu."
exit 1
fi
CODENAME="$VERSION_CODENAME"
echo "[1/3] Backing up sources.list..."
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "[2/3] Writing ArvanCloud mirror..."
cat > /etc/apt/sources.list <<EOF
deb http://mirror.arvancloud.ir/ubuntu ${CODENAME} universe
EOF
echo "[3/3] Updating package index..."
apt update
echo "Ubuntu mirror configured."

View File

@@ -0,0 +1,37 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Alpine Mirror Setup"
echo "================================="
if [[ ! -f /etc/alpine-release ]]; then
echo "This script only supports Alpine Linux."
exit 1
fi
echo
echo "[1/3] Backing up repositories..."
cp /etc/apk/repositories /etc/apk/repositories.bak
echo
echo "[2/3] Detecting Alpine version..."
ALPINE_VERSION=$(cut -d'.' -f1,2 /etc/alpine-release)
echo "Detected Alpine version: $ALPINE_VERSION"
echo
echo "[3/3] Writing Liara mirror..."
cat > /etc/apk/repositories <<EOF
https://linux-mirror.liara.ir/repository/alpine/v${ALPINE_VERSION}/main
https://linux-mirror.liara.ir/repository/alpine/v${ALPINE_VERSION}/community
EOF
echo
echo "Updating package index..."
apk update
echo
echo "Alpine mirror configured successfully."

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Arch Mirror Setup"
echo "================================="
if [[ ! -f /etc/arch-release ]]; then
echo "This script only supports Arch Linux."
exit 1
fi
echo
echo "[1/3] Backing up mirrorlist..."
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo
echo "[2/3] Writing Liara mirror..."
echo "Server = https://linux-mirror.liara.ir/repository/arch/\$repo/os/\$arch" \
> /etc/pacman.d/mirrorlist
echo
echo "[3/3] Refreshing package databases..."
pacman -Syy
echo
echo "Arch mirror configured successfully."

View File

@@ -0,0 +1,39 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara CentOS Mirror Setup"
echo "================================="
echo "[1/4] Creating backup directory..."
mkdir -p /etc/yum.repos.d/backup
echo "[2/4] Backing up existing repo files..."
for f in /etc/yum.repos.d/*.repo; do
cp "$f" /etc/yum.repos.d/backup/
done
echo "[3/4] Disabling existing repositories..."
for f in /etc/yum.repos.d/*.repo; do
sed -i "s/enabled=1/enabled=0/g" "$f"
done
echo "[4/4] Creating Liara mirror repository configuration..."
cat > /etc/yum.repos.d/liara-mirror.repo <<'EOF'
[liara-baseos]
name=Liara CentOS BaseOS
baseurl=https://linux-mirror.liara.ir/repository/centos/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=0
[liara-appstream]
name=Liara CentOS AppStream
baseurl=https://linux-mirror.liara.ir/repository/centos/$releasever/AppStream/$basearch/os/
enabled=1
gpgcheck=0
[liara-extras]
name=Liara CentOS Extras
baseurl=https://linux-mirror.liara.ir/repository/centos/$releasever

View File

@@ -0,0 +1,62 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Debian Mirror Setup"
echo "================================="
# Check OS
if [[ ! -f /etc/os-release ]]; then
echo "Cannot detect OS. /etc/os-release not found."
exit 1
fi
source /etc/os-release
if [[ "$ID" != "debian" ]]; then
echo "This script is only for Debian."
echo "Detected OS: $ID"
exit 1
fi
CODENAME="$VERSION_CODENAME"
if [[ -z "$CODENAME" ]]; then
echo "Could not detect Debian codename."
exit 1
fi
echo "Detected Debian codename: $CODENAME"
echo
echo "[1/4] Backing up current APT sources..."
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo
echo "[2/4] Writing Liara mirrors to /etc/apt/sources.list..."
cat > /etc/apt/sources.list <<EOF
deb https://linux-mirror.liara.ir/repository/debian $CODENAME main non-free-firmware
deb-src https://linux-mirror.liara.ir/repository/debian $CODENAME main non-free-firmware
deb https://linux-mirror.liara.ir/repository/debian-security ${CODENAME}-security main non-free-firmware
deb-src https://linux-mirror.liara.ir/repository/debian-security ${CODENAME}-security main non-free-firmware
deb https://linux-mirror.liara.ir/repository/debian ${CODENAME}-updates main non-free-firmware
deb-src https://linux-mirror.liara.ir/repository/debian ${CODENAME}-updates main non-free-firmware
EOF
echo
echo "[3/4] Mirror configuration written."
echo
echo "[4/4] Updating package lists..."
apt update
echo
echo "================================="
echo "Liara mirror setup completed"
echo "Backup saved at:"
echo "/etc/apt/sources.list.bak"
echo "================================="

View File

@@ -0,0 +1,79 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Fedora Mirror Setup"
echo "================================="
if [[ ! -f /etc/os-release ]]; then
echo "Cannot detect operating system."
exit 1
fi
source /etc/os-release
if [[ "$ID" != "fedora" ]]; then
echo "This script only supports Fedora."
echo "Detected OS: $ID"
exit 1
fi
echo "Detected Fedora version: $VERSION_ID"
FEDORA_REPO="/etc/yum.repos.d/fedora.repo"
UPDATES_REPO="/etc/yum.repos.d/fedora-updates.repo"
echo
echo "[1/4] Backing up existing repository files..."
cp "$FEDORA_REPO" "${FEDORA_REPO}.bak"
cp "$UPDATES_REPO" "${UPDATES_REPO}.bak"
echo
echo "[2/4] Configuring Fedora base repository..."
cat > "$FEDORA_REPO" <<'EOF'
[fedora]
name=Fedora $releasever - $basearch
baseurl=https://linux-mirror.liara.ir/repository/fedora/linux/releases/$releasever/Everything/$basearch/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
countme=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
EOF
echo
echo "[3/4] Configuring Fedora updates repository..."
cat > "$UPDATES_REPO" <<'EOF'
[updates]
name=Fedora $releasever - $basearch - Updates
baseurl=http://linux-mirror.liara.ir/repository/fedora/linux/updates/$releasever/Everything/$basearch/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
countme=1
repo_gpgcheck=0
type=rpm
gpgcheck=0
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
EOF
echo
echo "[4/4] Refreshing package cache..."
dnf makecache
echo
echo "================================="
echo "Liara Fedora mirror configured"
echo "Backups saved:"
echo "${FEDORA_REPO}.bak"
echo "${UPDATES_REPO}.bak"
echo "================================="

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Manjaro Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "manjaro" ]]; then
echo "This script only supports Manjaro."
echo "Detected OS: $ID"
exit 1
fi
echo
echo "[1/3] Backing up mirrorlist..."
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo
echo "[2/3] Writing Liara mirror..."
echo "Server = https://linux-mirror.liara.ir/repository/manjaro/stable/\$repo/\$arch" \
> /etc/pacman.d/mirrorlist
echo
echo "[3/3] Refreshing package databases..."
pacman -Syy
echo
echo "Manjaro mirror configured successfully."

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara OpenSUSE Mirror Setup"
echo "================================="
if ! command -v zypper &> /dev/null; then
echo "This script only supports OpenSUSE."
exit 1
fi
echo
echo "[1/2] Adding Liara repository..."
zypper addrepo \
--priority 100 \
--no-gpgcheck \
https://linux-mirror.liara.ir/repository/opensuse/distribution/leap/\$releasever/repo/oss/ \
opensuse-oss
echo
echo "[2/2] Refreshing repositories..."
zypper refresh
echo
echo "OpenSUSE mirror configured successfully."

View File

@@ -0,0 +1,59 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Rocky Linux Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "rocky" ]]; then
echo "This script only supports Rocky Linux."
echo "Detected OS: $ID"
exit 1
fi
REPO="/etc/yum.repos.d/rocky.repo"
echo
echo "[1/3] Backing up existing repository..."
if [[ -f "$REPO" ]]; then
cp "$REPO" "$REPO.bak"
fi
echo
echo "[2/3] Writing Liara mirror configuration..."
cat > "$REPO" <<'EOF'
[baseos]
name=Rocky Linux $releasever - BaseOS
baseurl=https://linux-mirror.liara.ir/repository/rocky/$contentdir/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
metadata_expire=6h
[appstream]
name=Rocky Linux $releasever - AppStream
baseurl=https://linux-mirror.liara.ir/repository/rocky/$contentdir/$releasever/AppStream/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
metadata_expire=6h
[crb]
name=Rocky Linux $releasever - CRB
baseurl=https://linux-mirror.liara.ir/repository/rocky/$contentdir/$releasever/CRB/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
metadata_expire=6h
EOF
echo
echo "[3/3] Refreshing package cache..."
dnf makecache
echo
echo "Rocky mirror configured successfully."

View File

@@ -0,0 +1,71 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Liara Ubuntu Mirror Setup"
echo "================================="
if [[ ! -f /etc/os-release ]]; then
echo "Cannot detect operating system."
exit 1
fi
source /etc/os-release
if [[ "$ID" != "ubuntu" ]]; then
echo "This script only supports Ubuntu."
echo "Detected OS: $ID"
exit 1
fi
CODENAME="$VERSION_CODENAME"
if [[ -z "$CODENAME" ]]; then
echo "Could not detect Ubuntu codename."
exit 1
fi
echo "Detected Ubuntu version codename: $CODENAME"
SOURCE_FILE="/etc/apt/sources.list.d/ubuntu.sources"
if [[ ! -f "$SOURCE_FILE" ]]; then
echo "Expected file not found: $SOURCE_FILE"
exit 1
fi
echo
echo "[1/4] Backing up existing sources..."
cp "$SOURCE_FILE" "${SOURCE_FILE}.bak"
echo
echo "[2/4] Writing Liara mirror configuration..."
cat > "$SOURCE_FILE" <<EOF
Types: deb
URIs: https://linux-mirror.liara.ir/repository/ubuntu
Suites: ${CODENAME} ${CODENAME}-updates ${CODENAME}-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: https://linux-mirror.liara.ir/repository/ubuntu-security
Suites: ${CODENAME}-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
EOF
echo
echo "[3/4] Mirror configuration written."
echo
echo "[4/4] Updating package index..."
apt update
echo
echo "================================="
echo "Liara Ubuntu mirror configured"
echo "Backup saved at:"
echo "${SOURCE_FILE}.bak"
echo "================================="

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare AlmaLinux Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "almalinux" ]]; then
echo "This script only supports AlmaLinux."
exit 1
fi
echo "[1/3] Backing up repo files..."
cp -r /etc/yum.repos.d /etc/yum.repos.d.bak
echo "[2/3] Updating repo configuration..."
for f in /etc/yum.repos.d/*.repo; do
sed -i 's/^mirrorlist/#mirrorlist/g' "$f"
sed -i 's/^#baseurl/baseurl/g' "$f"
sed -i 's|^baseurl=.*|baseurl=http://mirror-linux.runflare.com/almalinux/\$releasever/\$basearch/os/|g' "$f"
done
echo "[3/3] Refreshing cache..."
dnf clean all
dnf makecache
echo "AlmaLinux mirror configured."

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare Alpine Mirror Setup"
echo "================================="
if [[ ! -f /etc/alpine-release ]]; then
echo "This script only supports Alpine."
exit 1
fi
VERSION="v$(cut -d'.' -f1,2 /etc/alpine-release)"
echo "[1/3] Backing up repositories..."
cp /etc/apk/repositories /etc/apk/repositories.bak
echo "[2/3] Writing mirror..."
cat > /etc/apk/repositories <<EOF
http://mirror-linux.runflare.com/alpine/$VERSION/main
http://mirror-linux.runflare.com/alpine/$VERSION/community
EOF
echo "[3/3] Updating package index..."
apk update
echo "Alpine mirror configured."

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare Arch Mirror Setup"
echo "================================="
if [[ ! -f /etc/arch-release ]]; then
echo "This script only supports Arch Linux."
exit 1
fi
echo "[1/3] Backing up mirrorlist..."
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo "[2/3] Commenting existing mirrors..."
sed -i 's/^Server/#Server/g' /etc/pacman.d/mirrorlist
echo "[3/3] Adding Runflare mirror..."
echo "Server = http://mirror-linux.runflare.com/archlinux/\$repo/os/\$arch" \
>> /etc/pacman.d/mirrorlist
pacman -Syyu
echo "Arch mirror configured."

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare Debian Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "debian" ]]; then
echo "This script only supports Debian."
exit 1
fi
CODENAME=$(lsb_release -cs)
echo "[1/3] Backing up sources.list..."
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "[2/3] Writing Runflare mirror..."
tee /etc/apt/sources.list > /dev/null <<EOF
deb http://mirror-linux.runflare.com/debian $CODENAME main
deb http://mirror-linux.runflare.com/debian-security ${CODENAME}-security main
EOF
echo "[3/3] Updating package index..."
apt update
echo "Debian mirror configured."

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare Fedora Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "fedora" ]]; then
echo "This script only supports Fedora."
exit 1
fi
echo "[1/3] Updating repo configuration..."
sed -i "s|^metalink=|#metalink=|g" /etc/yum.repos.d/fedora*.repo
sed -i "s|^#baseurl=http://download.example/pub/fedora/linux|baseurl=http://mirror-linux.runflare.com/fedora|g" \
/etc/yum.repos.d/fedora*.repo
sed -i "s|^baseurl=http://download.example/pub/fedora/linux|baseurl=http://mirror-linux.runflare.com/fedora|g" \
/etc/yum.repos.d/fedora*.repo
echo "[2/3] Cleaning cache..."
dnf clean all
echo "[3/3] Rebuilding cache..."
dnf makecache
echo "Fedora mirror configured."

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare Kali Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "kali" ]]; then
echo "This script only supports Kali Linux."
exit 1
fi
RELEASE=$(lsb_release -cs)
echo "[1/3] Backing up sources.list..."
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "[2/3] Writing Runflare mirror..."
cat > /etc/apt/sources.list <<EOF
deb https://mirror-linux.runflare.com/kali $RELEASE main non-free contrib
EOF
echo "[3/3] Updating package index..."
apt update
echo "Kali mirror configured."

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -e
echo "================================="
echo " Runflare Ubuntu Mirror Setup"
echo "================================="
source /etc/os-release
if [[ "$ID" != "ubuntu" ]]; then
echo "This script only supports Ubuntu."
exit 1
fi
CODENAME=$(lsb_release -cs)
echo "[1/3] Backing up sources.list..."
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "[2/3] Writing Runflare mirror..."
tee /etc/apt/sources.list > /dev/null <<EOF
deb http://mirror-linux.runflare.com/ubuntu $CODENAME main restricted universe multiverse
deb http://mirror-linux.runflare.com/ubuntu $CODENAME-updates main restricted universe multiverse
deb http://mirror-linux.runflare.com/ubuntu $CODENAME-backports main restricted universe multiverse
deb http://mirror-linux.runflare.com/ubuntu $CODENAME-security main restricted universe multiverse
EOF
echo "[3/3] Updating package index..."
apt update
echo "Ubuntu mirror configured."