How to upgrade from Debian 8 Jessie to Debian 9 Stretch?

7,415

Solution 1

Update your apt repositories to use stretch instead of jessie (This can be done manually with a text editor, but sed can be used to automatically update the file.)

[user@debian-9 ~]$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list

Please note : Debian 9 (Stretch) is marked testing for a reason. You may notice stability problems when using it.

Solution 2

The following post provides the exact steps that one need to take in order to upgrade Debian 8 Jessie to Debian 9 Stretch:

https://economictheoryblog.com/2018/08/23/upgrade-debian-8-to-9/

Share:
7,415

Related videos on Youtube

Constantor
Author by

Constantor

Updated on September 18, 2022

Comments

  • Constantor
    Constantor over 1 year

    I've tried to run command apt-get update && apt-get upgrade && apt-get dist-upgrade as root, but nothing happens. I think that the problem is in non-fully complete apt sources. Am I right? What sources I need to set?

  • ctrl-alt-delor
    ctrl-alt-delor over 7 years
    Yes, when stretch becomes stable, then the procedure in the question will work. You are not meant to be using it yet.
  • ctrl-alt-delor
    ctrl-alt-delor over 7 years
    Context please.
  • ctrl-alt-delor
    ctrl-alt-delor over 7 years
    Don't do it. When stretch becomes stable, then the procedure in the question will work. You are not meant to be using it yet.
  • ctrl-alt-delor
    ctrl-alt-delor over 7 years
    The above will only work if logged in as root, don't do it. Instead use something like sudo tee. I won't give the full solution, as I don't want to be responsible for what happens if you upgrade, unless I get informed consent.
  • Rui F Ribeiro
    Rui F Ribeiro over 7 years
    I advise using our search field, and searching for stretch to have a feeling of what can go wrong.
  • Waxhead
    Waxhead about 7 years
    The httpredir.debian.org is obsolete and have been redirected to deb.debian.org. According to deb.debian.org only apt in stretch and later is able to make use of this.