[SOLVED] Failed System Update

Hardware: VPS bought online ( Contabo )
YunoHost version: 11.2.8.2
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

hello!

i was just trying to check for new system updates through webadmin and i got this error.
truth being said, i haven’t updated my system in a while. just putting it out there for some context.

Error: "500"

Action: "PUT" /yunohost/api/update/all

Error message:

Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://asi-fs-d.contabo.net/debian bullseye main non-free contrib
sources.list:deb-src http://asi-fs-d.contabo.net/debian bullseye main non-free contrib
sources.list:deb http://security.debian.org/debian-security bullseye-security main contrib non-free
sources.list:deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
sources.list:deb http://asi-fs-d.contabo.net/debian bullseye-updates main contrib non-free
sources.list:deb-src http://asi-fs-d.contabo.net/debian bullseye-updates main contrib non-free
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ bullseye main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-archive-keyring.gpg] http://forge.yunohost.org/debian/ bullseye stable

While processing the action the server said:

Fetching available upgrades for system packages...

E: Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 1d 0h 20min 27s). Updates for this repository will not be applied.

E: Release file for http://asi-fs-d.contabo.net/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 1d 6h 58min 8s). Updates for this repository will not be applied.

Sounds like you are living in the future … or in the past … can you check the system date using date (on command line) and check it’s a sensible value ?

definitely in the past :upside_down_face:

$- date
Thu 25 Jan 2024 01:08:27 AM CET

actual time when running date:

2:47 pm, 26 Jan Central European Time (CET)

i found this guide and run:

~$ timedatectl
               Local time: Thu 2024-01-25 01:16:27 CET
           Universal time: Thu 2024-01-25 00:16:27 UTC
                 RTC time: Thu 2024-01-25 00:16:27
                Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

then tried:

~$ sudo timedatectl set-ntp on
Failed to set ntp: NTP not supported

if this fails, it is recommended to install a package, but i don’t know if this can be freely done via command line in the ynh server. im thinking possible conflicts and whatnot.

Perhaps you could get APT running by first setting the date/time manually?

I found some examples at https://www.cyberciti.biz/faq/howto-set-date-time-from-linux-command-prompt/

1 Like

yep, i set the date/time manually and it worked.

i saw about that possibility, but i was skeptic about it until you shared it too. :smile_cat:

thank you very much for your support.

1 Like

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