From f109a847441a1780a714d4a73a9338be1eff505d Mon Sep 17 00:00:00 2001 From: lsy Date: Sun, 22 Sep 2024 23:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0ubuntu=E5=92=8Cdebian=2011?= =?UTF-8?q?=E6=8D=A2=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Sources.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Menus/Sources.sh b/Menus/Sources.sh index f64f68e..1a8ad85 100644 --- a/Menus/Sources.sh +++ b/Menus/Sources.sh @@ -44,6 +44,16 @@ EOF sudo apt-get update -y status=1 ;; + 'bullseye') + cat > "/etc/apt/sources.list" << EOF +deb ${url}/debian/ bullseye main contrib non-free +deb ${url}/debian/ bullseye-updates main contrib non-free +deb ${url}/debian/ bullseye-backports main contrib non-free +EOF + sudo apt update -y + sudo apt-get update -y + status=1 + ;; esac case "$system" in @@ -52,6 +62,18 @@ case "$system" in sed -i '/^Server.*/d' "/etc/pacman.conf" echo "Server = ${url}/archlinuxcn/\$arch" sudo pacman-key --lsign-key "farseerfc@archlinux.org" + pacman -Syyu + status=1 + ;; + 'ubuntu') + cat > "/etc/apt/sources.list" << EOF +deb ${url}/ubuntu/ ${version} main restricted universe multiverse +deb ${url}/ubuntu/ ${version}-security main restricted universe multiverse +deb ${url}/ubuntu/ ${version}-updates main restricted universe multiverse +deb ${url}/ubuntu/ ${version}-backports main restricted universe multiverse +EOF + sudo apt update -y + sudo apt-get update -y status=1 ;; esac