Skip to content
Snippets Groups Projects
Commit 9e515d1c authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added Debian sources list | refs #29485

parent 81216c3d
No related branches found
No related tags found
No related merge requests found
......@@ -13,15 +13,21 @@ if [ -f '/etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist' ]; then
fi
# update sources.list
if ( ! test -f '/etc/apt/sources.list.save' ); then
cp -a '/etc/apt/sources.list' '/etc/apt/sources.list.save'
fi
rm -f /etc/apt/sources.list~
if ( lsb_release -a | grep 'Ubuntu' >/dev/null 2>&1 ); then
echo "Updating /etc/apt/sources.list file."
cp sources.list /etc/apt/sources.list
echo 'Updating /etc/apt/sources.list file.'
cp 'sources-ubu.list' '/etc/apt/sources.list'
if ( lsb_release -a | grep '14.04' >/dev/null 2>&1 ); then
sed -i 's@bionic@trusty@' /etc/apt/sources.list
elif ( lsb_release -a | grep '16.04' >/dev/null 2>&1 ); then
sed -i 's@bionic@xenial@' /etc/apt/sources.list
fi
else
# Debian
cp 'sources-deb.list' '/etc/apt/sources.list'
fi
# modify sources.list to use ubicast cache
......
deb http://ftp.debian.org/debian buster main contrib non-free
deb http://ftp.debian.org/debian buster-updates main contrib non-free
deb http://security.debian.org buster/updates main contrib non-free
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
\ No newline at end of file
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment