Skip to content
Snippets Groups Projects
bootstrap-apt-upgrade.sh 357 B
Newer Older
#!/bin/sh
set -ex
sed -i "s/deb.debian.org/ftp.uk.debian.org/g" /etc/apt/sources.list
sed -i "s|ftp.uk.debian.org/debian-security|security.debian.org/debian-security|g" /etc/apt/sources.list
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get \
  -o Dpkg::Options::="--force-confnew" --allow-remove-essential --allow-change-held-packages -fuy \
  upgrade