How to upgrade from Debian Linux 8 Jessie to Debian 9 Stretch using command line over ssh based session

How do I upgrade my Debian 8 (Jessie) system to Debian 9 (Stretch) using command line over ssh based session? It is possible to upgrade to Debian 9 from Debian 8 using ssh. This tutorial shows how to upgrade from Debian 8 Jessie Linux to Debian 9 Stretch using command line. Please note that Debian 9 made significant changes and upgrade might fail including data corruption is possible due to change in data formats. See “Issues to be aware of for stretch” for more info. Make sure you read the page before typing any one of the following commands.

Step 1: Back up any important data on the server

Make a backup (I am using Rsnapshot) – it cannot be stressed enough how important it is to make a backup of your system before you do this. Most of the actions listed in this tutorial are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Type the following commands to see current version:$ uname -mrs Sample outputs:

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Your support makes a big difference:

I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft takes a lot of my time and hard work to produce. If everyone who reads nixCraft, who likes it, helps fund it, my future would be more secure. You can donate as little as $1 to support nixCraft: