Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2016 00:24
Show Gist options
  • Save anonymous/21fc9043b1ee3fa3660cd4d513ee67d5 to your computer and use it in GitHub Desktop.
Save anonymous/21fc9043b1ee3fa3660cd4d513ee67d5 to your computer and use it in GitHub Desktop.
# Upgrade all the packages to the latest versions
aptitude update
aptitude full-upgrade -y
# Update our sources, save the original as /etc/apt/sources.list.ORIG
# This step is REQUIRED, otherwise the instructions below will not upgrade a
# single package.
sed -i.ORIG 's/trusty/xenial/g' /etc/apt/sources.list
# Backup the /etc/apt/sources.list.d/ folder and create an empty one.
# This will disable all Third Party/Launchpad PPA repositories.
# These repositories can be re-enabled after a successful upgrade.
mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.ORIG/
mkdir /etc/apt/sources.list.d/
# Upgrade your box--the easy part.
aptitude update
aptitude safe-upgrade -y
# Now for the scary one--see below.
apt-get dist-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment