How to upgrade Debian 8 Jessie to Debian 9 Stretch

Debian Logo

Debian 9 Stretch is the next future stable version of Debian, but although it is not currently recommended by the Debian team, the truth is that the version is stable enough to use it on our production teams.

Even the Debian testing version is considered by many to be a suitable version for use on production teams. That is why we are going to show you how to update the current Debian 8 Jessie to the new Debian 9 Stretch.

Debian 9 Stretch will be the future stable version of Debian

First we have to make sure we have the latest version of Debian (currently Debian 8.8), for this we open the terminal and write the following:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

Once we have done this, we have to update the distribution repositories. To do this we write the following in the terminal:

sudo nano /etc/apt/sources.list

With what the Nano text editor will open and the sources.list file with the Debian repositories. Now we have to change the text of the lines in which the word "Jessie" appears and replace it with the word "Stretch". After doing so, we have to save the changes. To do this, just press the Control + O key and then we exit by pressing the Control + X keys. Now we have to repeat the first step, for this we open the terminal and type the following again:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

After this, the distribution should begin the update to the new version, an update that contains hundreds of packages and you need a high speed connection otherwise, we can take hours to carry out such a process. The alternative to this process would be to use the Debian 9 Stretch ISO image, but for that we have to download the image from this link and modify the repositories so that it uses the ISO image.


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

5 comments, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   The Uncle Of The Key said

    $ cat /etc/apt/sources.list
    # / etc / apt / sources.list
    $

  2.   LCNQ said

    I just upgraded to Debian 9. And now apt suggests doing autoremove. It happens that autoremove wants to remove packages like xorg
    «The packages listed below were installed automatically and are no longer required:
    … Xinit xorg xsane xsane-common xscreensaver xscreensaver-data xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
    ... Use "sudo apt autoremove" to remove them "
    (That's a summary list of what it shows me in the terminal)
    Anybody knows what could be the problem?
    Thank you.

  3.   Manuel Sicily said

    Congratulations Joaquin, good post.
    It only has one error (substitute for the word “Stretch” is stretch)
    Thanks. Manuel Sicilia siliaro

  4.   Ericka said

    Hello, thank you for your article. I have a problem, after installing debian 9 the pc is very slow. What should I do to go back to version 8?

  5.   Achilles said

    It did not work out