#! /bin/bash sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list grep -E 'archive.ubuntu.com|security.ubuntu.com' /etc/apt/sources.list.d/* sudo apt-get update