[SOLVED] Source list error when trying to update yunohost on stretch

My YunoHost server

Hardware: Dedicated debian 9 server (OVH / Kimsufi)

YunoHost version:
yunohost:
repo: now
version: 3.7.1.3
yunohost-admin:
repo: now
version: 3.7.1.1
moulinette:
repo: now
version: 3.7.1.1
ssowat:
repo: now
version: 3.7.1.1

I have access to my server : Through SSH AND through the webadmin

Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hello there ! I’m actually struggling on how i could update yunohost to version 3.8.5.x as i want to migrate my server to debian 10, and yunohost aswell.

Actually, i’m getting some errors when i try to update :

Warning: E: The repository 'http://repo.yunohost.org/debian stretch Release' does not have a Release file.

Here is the source list of yunohost (when i remove it, i can update every other packages) :

admin@platform:~$ cat /etc/apt/sources.list.d/yunohost.list
deb http://repo.yunohost.org/debian/ stretch stable

I guess i just don’t have the right version of the source list, perhaps after searching for it, i couldn’t find the good one.

Can someone help me out ?

Thanks by the way !

Happy coding all

Not sure how you ended up in that situation because that should have been changed automatically somehow, but the debian repo is now forge.yunohost.org and not repo.yunohost.org

Hello there ! First thanks for your reply, second sorry for my late reply :stuck_out_tongue:

I’ve changed it to forge, and i’m still facing this issue :

E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Here is my source list for yunohost :

admin@platform:~$ cat /etc/apt/sources.list.d/yunohost.list
deb http://forge.yunohost.org/debian/ stretch stable

When i comment the line, everything is good, except that i can’t upgrade btw :sweat_smile:

Any ideas ?

Djeez, apt is always so explicit about the error messages … (no it isnt)

Let’s try to see if this works then :

curl https://forge.yunohost.org/debian/dists/stretch/Release | head -n 2

Do you see

Origin: YunoHost
Label: YunoHost for Stretch

I agree :sweat_smile:

Yes i see it :

91.121.121.36admin@platform:~/cowww$ curl https://forge.yunohost.org/debian/dists/stretch/Release | head -n 2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Origin: YunoHost
Label: YunoHost for Stretch
100 17683  100 17683    0     0   233k      0 --:--:-- --:--:-- --:--:--  236k
curl: (23) Failed writing body (433 != 1732)

Alternatively you can try to run apt update (not apt-get update) because some people on the internets claim it can fix this kind of issue for mystical reasons

Hemmmm… WOW !

I’ll read some docs for this, you are right, here it was from the other side : Apparently, apt-get has solved the issue (i was just using apt before).

Here is the complete log :

admin@platform:~$ sudo apt update
Get:3 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Ign:1 http://debian.mirrors.ovh.net/debian stretch InRelease
Ign:2 http://debian.mirrors.ovh.net/debian stretch-updates InRelease
Ign:4 http://forge.yunohost.org/debian stretch InRelease
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [623 kB]
Err:5 http://debian.mirrors.ovh.net/debian stretch Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:6 http://debian.mirrors.ovh.net/debian stretch-updates Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err:7 http://forge.yunohost.org/debian stretch Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
E: The repository 'http://debian.mirrors.ovh.net/debian stretch Release' does no longer 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.
E: The repository 'http://debian.mirrors.ovh.net/debian stretch-updates Release' does no longer 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.
E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer 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.
admin@platform:~$ cat /etc/apt/sources.list.d/yunohost.list
deb http://forge.yunohost.org/debian/ stretch stable

admin@platform:~/cowww$ curl ifconfig.me
91.121.121.36admin@platform:~/cowww$ curl https://forge.yunohost.org/debian/dists/stretch/Release | head -n 2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Origin: YunoHost
Label: YunoHost for Stretch
100 17683  100 17683    0     0   233k      0 --:--:-- --:--:-- --:--:--  236k
curl: (23) Failed writing body (433 != 1732)


admin@platform:~/cowww$ sudo apt-get update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Hit:2 http://forge.yunohost.org/debian stretch InRelease
Ign:3 http://debian.mirrors.ovh.net/debian stretch InRelease
Get:4 http://debian.mirrors.ovh.net/debian stretch-updates InRelease [93.6 kB]
Get:5 http://debian.mirrors.ovh.net/debian stretch Release [118 kB]
Fetched 212 kB in 0s (277 kB/s)
Reading package lists... Done


admin@platform:~/cowww$ sudo apt update
Ign:1 http://debian.mirrors.ovh.net/debian stretch InRelease
Get:2 http://debian.mirrors.ovh.net/debian stretch-updates InRelease [93.6 kB]
Hit:3 http://forge.yunohost.org/debian stretch InRelease
Get:4 http://debian.mirrors.ovh.net/debian stretch Release [118 kB]
Hit:5 http://security.debian.org/debian-security stretch/updates InRelease
Fetched 212 kB in 0s (278 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
admin@platform:~/cowww$ cat /etc/apt/sources.list.d/yunohost.list
deb http://forge.yunohost.org/debian/ stretch stable

Pretty strange … But still, Big up to you :smiley: Time to migrate now :slight_smile:

Well … here’s yet another example of why it’s important to always provide the FULL LOGS

The message about “does no longer have a Release file.” was a red-herring. You real issue was :

server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

Not sure how that got fixed, maybe something behind the scene, but running apt-get vs. apt seems to have no relation …

Well, my bad, next time ill provide full logs :confused:

Maybe one of the curl of apt-get command fetched a new cert on the server, while the usual apt command isn’t and provide an old cert ?

Thanks still !

Yeah i dunno, I saw some funky stuff about certificates these past month which made me lose faith in computer even more than before. At this point I’m just convinced computers are not powered by silicon and electrons, but by evil little monkeys creating random issues all over the place ¯\_(ツ)_/¯

1 Like

Hope you’re wrong, but facts says you’re right haha :smiley: Anyway, thanks for help :smiley:

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