Caught in Jessie upgrade loop

Greetings fellow humans!

So I had a scare with a corrupt hard drive, which caused me to take my Yunohost server offline for a few months. Now I have a new hard drive I’m trying to get Yunohost upgraded and online again.

The problem I’m running into is that the Jessie repos seem to not exist any more, and yet Yunohost wants them before it will let me upgrade.

When I do “yunohost tools update” it can’t find the Yunohost repo and I get:

Failed to fetch http://repo.yunohost.org/dists/megusta/main/binary-amd64/Packages 404 Not Found [IP: 91.224.148.92 80]

https://repo.yunohost.org says:

This is were the old Debian Jessie packages were build and served.
If you are still running YunoHost 2.x / Jessie,
you should seriously consider upgrading your server
following this procedure

But when I follow the proceedure there, specifically doing:

sudo yunohost tools migrations migrate

It fails, saying:

yunohost tools: error: invalid choice: ‘migrations’ (choose from ‘upgrade’, ‘ldapinit’, ‘postinstall’, ‘maindomain’, ‘update’, ‘adminpw’)

If I do yunohost tools update, we go back to the beginning and it complains about not finding the Jessie repos!

Is there a newer repo name I should use? Anyway, here’s my technical details:

My YunoHost server

Hardware: Virtualbox VM running as x86

YunoHost version: x.x.x
I have access to my server : Yes. I can log in and access via the command line.
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no (well, other than changing Debian from the CA servers to the default ones, but those repos are working fine)

Description of my issue

I’m trying to update the Yunohost packages. I did Yunohost tools update. I got the following error:

yunohost tools update
Updating the lists of available packages…
Traceback (most recent call last):
File “/usr/bin/yunohost”, line 160, in
print_json=PRINT_JSON, use_cache=USE_CACHE)
File “/usr/lib/python2.7/dist-packages/moulinette/init.py”, line 117, in cli
moulinette.run(args, print_json)
File “/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py”, line 202, in run
ret = self.actionsmap.process(args, timeout=5)
File “/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py”, line 462, in process
return func(**arguments)
File “/usr/lib/moulinette/yunohost/tools.py”, line 350, in tools_update
if not cache.update():
File “/usr/lib/python2.7/dist-packages/apt/cache.py”, line 443, in update
raise FetchFailedException(e)
apt.cache.FetchFailedException: W:Failed to fetch http://repo.yunohost.org/dists/megusta/main/binary-amd64/Packages 404 Not Found [IP: 91.224.148.92 80]

Here is my /etc/apt/sources.list contents:

deb cdrom:[Debian GNU/Linux 8.4.0 Jessie - Official amd64 kde-CD Binary-1 20160402-14:44]/ jessie main

deb http://deb.debian.org/debian/ jessie main
deb-src http://deb.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

PS I’m not exactly sure what version of Yunohost I’m using. I have access to the admin page, but it doesn’t have a version number anywhere I’m seeing…

Random guess but could you use

nano /etc/apt/sources.list.d/yunohost.list

(maybe it’s another file idk)

and replace ‘megusta’ by ‘stable’ and see if that makes apt update happy ?

Thanks @Aleks,
I actually found that I had a more recent backup (post the Stretch migration!) so I managed to get everything upgraded. Thanks for the suggestion though!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.