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.
5 comments, leave yours
$cat /etc/apt/sources.list
# / etc / apt / sources.list
$
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.
Congratulations Joaquin, good post.
It only has one error (substitute for the word “Stretch” is stretch)
Thanks. Manuel Sicilia siliaro
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?
It did not work out