Improve debian sources setup
This commit is contained in:
27
install.sh
27
install.sh
@@ -90,10 +90,11 @@ echo
|
|||||||
|
|
||||||
# Install Programs
|
# Install Programs
|
||||||
if [ "$reload" = false ]; then
|
if [ "$reload" = false ]; then
|
||||||
|
testing_branch="trixie"
|
||||||
echo "Debian Sources:"
|
echo "Debian Sources:"
|
||||||
echo "1) Stable"
|
echo "1) Stable"
|
||||||
echo "2) Testing"
|
echo "2) Testing ($testing_branch)"
|
||||||
echo "3) Skip (Do not change)"
|
echo "3) Skip ($(lsb_release -c -s))"
|
||||||
printf "Enter your choice: "
|
printf "Enter your choice: "
|
||||||
|
|
||||||
while read -r REPLY; do
|
while read -r REPLY; do
|
||||||
@@ -101,13 +102,31 @@ if [ "$reload" = false ]; then
|
|||||||
1)
|
1)
|
||||||
echo "${CYAN}Using Stable sources.${NC}"
|
echo "${CYAN}Using Stable sources.${NC}"
|
||||||
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
||||||
sudo cp stable-sources.list /etc/apt/sources.list
|
sudo sh -c 'cat > /etc/apt/sources.list <<EOF
|
||||||
|
deb http://deb.debian.org/debian stable main contrib non-free
|
||||||
|
deb-src http://deb.debian.org/debian stable main contrib non-free
|
||||||
|
|
||||||
|
deb http://security.debian.org/debian-security stable-security main contrib non-free
|
||||||
|
deb-src http://security.debian.org/debian-security stable-security main contrib non-free
|
||||||
|
|
||||||
|
deb http://deb.debian.org/debian stable-updates main contrib non-free
|
||||||
|
deb-src http://deb.debian.org/debian stable-updates main contrib non-free
|
||||||
|
EOF'
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
echo "${CYAN}Using Testing sources.${NC}"
|
echo "${CYAN}Using Testing sources.${NC}"
|
||||||
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
||||||
sudo cp testing-sources.list /etc/apt/sources.list
|
sudo sh -c "cat > /etc/apt/sources.list <<EOF
|
||||||
|
deb http://deb.debian.org/debian $testing_branch main contrib non-free
|
||||||
|
deb-src http://deb.debian.org/debian $testing_branch main contrib non-free
|
||||||
|
|
||||||
|
deb http://security.debian.org/debian-security $testing_branch-security main contrib non-free
|
||||||
|
deb-src http://security.debian.org/debian-security $testing_branch-security main contrib non-free
|
||||||
|
|
||||||
|
deb http://deb.debian.org/debian $testing_branch-updates main contrib non-free
|
||||||
|
deb-src http://deb.debian.org/debian $testing_branch-updates main contrib non-free
|
||||||
|
EOF"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
deb https://deb.debian.org/debian stable main contrib non-free non-free-firmware
|
|
||||||
deb-src https://deb.debian.org/debian stable main contrib non-free non-free-firmware
|
|
||||||
|
|
||||||
deb https://security.debian.org/debian-security stable-security main contrib non-free non-free-firmware
|
|
||||||
deb-src https://security.debian.org/debian-security stable-security main contrib non-free non-free-firmware
|
|
||||||
|
|
||||||
deb https://deb.debian.org/debian stable-updates main contrib non-free non-free-firmware
|
|
||||||
deb-src https://deb.debian.org/debian stable-updates main contrib non-free non-free-firmware
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
|
|
||||||
deb-src http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
|
|
||||||
|
|
||||||
deb http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
|
|
||||||
deb-src http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
|
|
||||||
|
|
||||||
deb https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
|
|
||||||
deb-src https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
|
|
||||||
Reference in New Issue
Block a user