Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories


How to upgrade to Debian Linux 9 (stretch)

Ástþór IPÁstþór IP
Follow these steps to upgrade your system from Debian Linux 8 (Jessie) to Debian Linux 9 (Stretch).

Compatibility

This tutorial has been tested on the following Linux distributions:

Debian Linux 8 (Jessie)

Last updated:
29th of March 2018

1. Update all packages currently installed to the latest versions

apt-get update
apt-get upgrade

2. Replace all occurrences of jessie with stretch in the apt sources file /etc/apt/sources.list using your favorite text editor (ex. pico /etc/apt/sources.list).

Here’s an example of what the file could look like after the change:

deb http://ftp.debian.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main

Alternatively you can use the sed command to replace the reference to the repository:

sed -i 's/jessie/stretch/g' /etc/apt/sources.list

3. Update the apt package index

apt-get update

4. Upgrade all packages

apt-get upgrade
apt-get dist-upgrade

5. Once all packages are upgraded, restart the system

reboot

Your system has now been upgraded to Debian Linux 9 (Stretch)

Comments 0
There are currently no comments.