This commit is contained in:
hl committed 2024-11-04 05:30:42 +08:00
1 parent 1aedc4dbd5
commit 9ec1c88ada
1 file changed
+30 -20
+30 -20
View File
@@ -72,23 +72,21 @@ Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Architectures: $OS_ARCH Architectures: $OS_ARCH
Enabled: yes Types: deb
Types: deb-src
URIs: $SEC_URL URIs: $SEC_URL
Suites: $OS_CODE-security Suites: $OS_CODE-security
Components: main contrib non-free non-free-firmware Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Architectures: $OS_ARCH
" | tee /etc/apt/sources.list.d/debian.sources " | tee /etc/apt/sources.list.d/debian.sources
# echo -e "deb $MIRROR_URL $OS_CODE main contrib non-free non-free-firmware
#deb $MIRROR_URL $OS_CODE-updates main contrib non-free non-free-firmware
#deb $MIRROR_URL $OS_CODE-backports main contrib non-free non-free-firmware
#deb $SEC_URL $OS_CODE-security main contrib non-free non-free-firmware
#" | tee /etc/apt/sources.list
if [ $FOR_PVE -eq 1 ]; then if [ $FOR_PVE -eq 1 ]; then
echo "deb $PVE_URL bookworm pve-no-subscription" | \ echo -e "Types: deb
tee /etc/apt/sources.list.d/pve-no-subscription.list URIs: $PVE_URL
Suites: $OS_CODE
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-offline-signing-key.pub
" | tee /etc/apt/sources.list.d/pve-no-subscription.sources
fi fi
command="nala" command="nala"
@@ -100,23 +98,35 @@ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
if [[ $OS_VERSION=="12" ]]; then if [[ $OS_VERSION=="12" ]]; then
OS_VERSION="Testing" OS_VERSION="Testing"
fi fi
echo "deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-completions/Debian_$OS_VERSION/ /" | \
tee /etc/apt/sources.list.d/shells:zsh-users:zsh-completions.list echo -e "Types: deb
URIs: http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-completions/Debian_$OS_VERSION/
Suites: /
Signed-By: /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-completions.gpg
" | tee /etc/apt/sources.list.d/zsh-completions.sources
curl -fsSL "https://download.opensuse.org/repositories/shells:zsh-users:zsh-completions/Debian_$OS_VERSION/Release.key" | \ curl -fsSL "https://download.opensuse.org/repositories/shells:zsh-users:zsh-completions/Debian_$OS_VERSION/Release.key" | \
gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-completions.gpg > /dev/null gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-completions.gpg > /dev/null
if [ $FOR_PVE -eq 1 ]; then if [ $FOR_PVE -eq 0 ]; then
rm /etc/apt/sources.list.d/docker.list || true echo -e "Types: deb
rm /etc/apt/sources.list.d/azlux.list || true URIs: $DOCKER_URL
else Suites: $OS_CODE
echo "deb [arch=$OS_ARCH] $DOCKER_URL $OS_CODE stable" | \ Components: stable
tee /etc/apt/sources.list.d/docker.list Signed-By: /etc/apt/trusted.gpg.d/docker.gpg
Architectures: $OS_ARCH
" | tee /etc/apt/sources.list.d/docker.sources
curl -fsSL "https://download.docker.com/linux/debian/gpg" | \ curl -fsSL "https://download.docker.com/linux/debian/gpg" | \
gpg --dearmor | tee /etc/apt/trusted.gpg.d/docker.gpg > /dev/null gpg --dearmor | tee /etc/apt/trusted.gpg.d/docker.gpg > /dev/null
echo "deb [arch=$OS_ARCH] http://packages.azlux.fr/debian $OS_CODE main" | \ #For docker-ctop
tee /etc/apt/sources.list.d/azlux.list echo -e "Types: deb
URIs: http://packages.azlux.fr/debian
Suites: $OS_CODE
Components: main
Signed-By: /etc/apt/trusted.gpg.d/azlux-archive-keyring.gpg
Architectures: $OS_ARCH
" | tee /etc/apt/sources.list.d/azlux.sources
curl -fsSL "https://azlux.fr/repo.gpg.key" | \ curl -fsSL "https://azlux.fr/repo.gpg.key" | \
gpg --dearmor | tee /etc/apt/trusted.gpg.d/azlux-archive-keyring.gpg > /dev/null gpg --dearmor | tee /etc/apt/trusted.gpg.d/azlux-archive-keyring.gpg > /dev/null
fi fi