Instructions for manual update from Debian Jessie to Stretch
# ensure nothing is running on the node and shutdown slurm and salt
systemctl stop slurmd.service
systemctl stop salt-minion
# no questions asked by apt/dpkg
export DEBIAN_FRONTEND=noninteractive
# remove not needed apt sources
rm -f /etc/apt/sources.list.d/{condor,jessie-backports}.list
# ensure everything is up to date
apt-get -qq update; apt-get -y upgrade; apt-get -y dist-upgrade; apt-get -y autoremove; apt-get clean
# edit/rewrite the remaining sources to point to stretch
rm -f /etc/apt/sources.list
cat > /etc/apt/sources.list <<EOF
deb http://repository/debian stretch main contrib non-free
deb http://repository/security/ stretch/updates main contrib non-free
EOF
rm -f /etc/apt/sources.list.d/lscsoft.list
cat > /etc/apt/sources.list.d/lscsoft.list <<EOF
deb http://software.ligo.org/lscsoft/debian stretch contrib
deb-src http://software.ligo.org/lscsoft/debian stretch contrib
EOF
rm -f /etc/apt/sources.list.d/saltstack.list
cat > /etc/apt/sources.list.d/saltstack.list <<EOF
deb http://repository/salt/debian/9/amd64/2019.2 stretch main
EOF
# as we mirror a signed external repo, we need to add the remote key
wget -O - https://repo.saltstack.com/apt/debian/9/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
# remove lscsoft-all for now (will be reinstalled later)
apt-get -y remove lscsoft-all && apt-get -y autoremove && apt-get clean
# start the big update (this will take quite some time)
apt-get -q update && apt-get -y upgrade && apt-get -y dist-upgrade
# since the former step may break down due to some LIGO internal and OS package
# inter dependencies, run this to go on and then rinse and repeat until all is well
apt-get -yf install && apt-get -q update && apt-get -y upgrade && apt-get -y dist-upgrade
# Sometimes a broken lscsoft-lalsuite pacakge seems to be around
# but CA is unsure why
# therefore, try to clean everything up and re-install lscsoft-all
dpkg -l | awk '$3 ~/deb8/ {print $2}'|grep -v linux-image | xargs apt-get -y remove --purge
apt-get -y autoremove
apt-get clean
apt-get -y install lscsoft-all
# check that everything is correctly installed
apt-get -f install
# ensure latest grub-pc is installed
apt-get --yes --purge remove grub-pc grub-common
unset DEBIAN_FRONTEND
apt-get -y install grub-pc
# select /dev/sda
# finally
reboot
--
CarstenAulbert - 13 Aug 2019