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/
Related videos on Youtube
Author by
Constantor
Updated on September 18, 2022Comments
-
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 over 7 yearsYes, when stretch becomes stable, then the procedure in the question will work. You are not meant to be using it yet.
-
ctrl-alt-delor over 7 yearsContext please.
-
ctrl-alt-delor over 7 yearsDon'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 over 7 yearsThe 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 over 7 yearsI advise using our search field, and searching for stretch to have a feeling of what can go wrong.
-
Waxhead about 7 yearsThe 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.