How to upgrade from Debian 8 to 9

VPS Customers running Debian 8 can upgrade to their latest OS version (currently Debian 9) with the following commands run as the root user:

apt-get update && apt-get upgrade

Then change any text of the word “jessie” in /etc/apt/sources.list to “stretch” and run the above commands again, with more upgrade commands afterwards too (as root, preferably on your VPS Console (access to which we provide)):

apt-get update && apt-get upgrade && apt-get dist-upgrade

And answer Y to any prompts (eg: to restart services) or let it proceed with defaults, and when changelogs are being listed, press ‘q’ at the ‘:’ prompt to quit their listing.

Finally and before you reboot into your new upgraded kernel and system, it’s best to purge the obsoleted Debian 8 Packages, with the following commands run as root:

apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
apt-get autoremove

FYI,
Richard.
** PLEASE NOTE THAT YOU SHOULD TAKE A FULLY RESTORABLE IMAGE OF YOUR VPS BEFORE DOING THIS UPGRADE

This entry was posted in Network Presence, Sales and tagged , , . Bookmark the permalink.