add contrib an nonfree

This commit is contained in:
Mario Fetka 2024-04-20 10:38:39 +02:00
parent 72a1e711a0
commit 95359d39b8

View File

@ -66,6 +66,7 @@ function msg_ok() {
}
msg_info "Installing needed base packages"
apt update &>/dev/null
apt install lsb-release dpkg-dev wget curl figlet lolcat unzip -y &>/dev/null
msg_ok "Installing needed base packages"
@ -120,22 +121,21 @@ echo "deb http://security.debian.org bullseye-security contrib non-free main" >>
msg_ok "adding bullseye repository to bookworm for python2"
fi
msg_info "adding jessie repository for openssl 1.0"
msg_info "adding jessie lts repository for openssl 1.0"
wget https://deb.freexian.com/extended-lts/archive-key.gpg -O /etc/apt/trusted.gpg.d/freexian-archive-extended-lts.gpg &>/dev/null
echo "deb http://deb.freexian.com/extended-lts jessie main contrib non-free" > /etc/apt/sources.list.d/jessie-extended-lts.list
msg_ok "adding jessie repository for openssl 1.0"
msg_ok "adding jessie lts repository for openssl 1.0"
msg_info "Setting up ${APP} Repository"
apt update &>/dev/null
apt install -y software-properties-common &>/dev/null
if [ "${DIST}" = "Debian" ]; then
apt-add-repository contrib &>/dev/null
apt-add-repository non-free &>/dev/null
apt-add-repository -y contrib &>/dev/null
apt-add-repository -y non-free &>/dev/null
fi
if [ "${DIST}" = "Ubuntu" ]; then
apt-add-repository universe &>/dev/null
apt-add-repository restricted &>/dev/null
apt-add-repository multiverse &>/dev/null
apt-add-repository -y universe &>/dev/null
apt-add-repository -y restricted &>/dev/null
apt-add-repository -y multiverse &>/dev/null
fi
apt update &>/dev/null
apt install -y curl &>/dev/null