I just ran the script for migtration from jessie to stretch. I get a failure after when trying to apt update
root@server:~# sudo apt update
Ign:2 http://ftp.debian.org/debian stretch InRelease
Atteint:3 http://security.debian.org stretch/updates InRelease
Atteint:4 http://ftp.debian.org/debian stretch Release
Ign:1 https://forge.yunohost.org stretch InRelease
Err:5 https://forge.yunohost.org stretch Release
Redirection loop encountered
Lecture des listes de paquets... Fait
E: The repository 'http://forge.yunohost.org stretch Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
This is the apt file that I have:
root@server:~# cat /etc/apt/sources.list.d/yunohost.list
deb http://forge.yunohost.org/ stretch stable
It udpated the packages from the debian repos but when I run apt update I still get the same result…
Is there some logs that I can share to help on this issue?
EDIT
This is what is get when I try to do it via the admin dashboard (if there is something that can help but it looks the same):
Yunohost encountered an internal error :/
Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you :
Action
PUT /update
{}
Traceback
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 406, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 498, in process
return func(**arguments)
File "/usr/lib/moulinette/yunohost/tools.py", line 426, in tools_update
if not cache.update():
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 464, in update
raise FetchFailedException(e)
FetchFailedException: E:The repository 'http://forge.yunohost.org stretch Release' does not have a Release file.
This was solved on the chat : turns out there was a missing /debian in the sources.list line. The line should read :
deb http://forge.yunohost.org/debian stretch stable
Not sure why the /debian was missing but it was dating back from the jessie instance (apparently ~3 years old) - maybe a very old piece of code during the install at that time …