Apt update fails because of mariadb repo

Support intro

Nextcloud version (eg, 20.0.5): 26.0.5
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04

The issue you are facing:

apt update leads to:

Err:6 https://mirror.kumi.systems/mariadb/repo/10.8/ubuntu jammy Release
404 Not Found [IP: 135.181.208.35 443]
Hit:7 Index of /ubuntu jammy-security InRelease
Reading package lists… Done
E: The repository ‘https://mirror.kumi.systems/mariadb/repo/10.8/ubuntu jammy Release’ no longer has 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.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it: apt update

Nextcloud versions seem to have some relationship to corresponding mariadb version, so I want to avoid traps.

Would upgrade to NC 26.0.9 solve the problem? Or go to some NC 27.*?

Any help appreciated

Greetings Wolfgang

The issue is with Ubuntu. For some reason your system cannot locate 10.8 mariadb from jammy. The repo isn’t working. First thing is to check your actual Ubuntu installation, then check the apt repository.

Check against internet searches for fixes such as

$ lsb_release -a
will tell you what version of Ubuntu you are running.

You can then remove and re-add the supported ppa repository so you’ll be able to find that mariadb package as part of your update process.

https://mirror.kumi.systems/mariadb/repo/10.8/ubuntu jammy

Does not exist according to that repo

MariaDB 10.8 was a short-term release that has been End of Life since May of this year, and as @just already mentioned, it appears that the repos for this release are no longer available:

https://mariadb.org/about/#maintenance-policy

https://mariadb.org/download/?t=repo-config&d=22.04+%22jammy%22

I recommend upgrading to the latest long-term release, which is currently 10.11. It will be maintained until 16 February 2028.

Tx for the quick answers.

So MariaDB is not upgraded with NC upgrades? Doesn’t seem logical to me as I found several mentions, that “this NC version only works with this MariaDB version x”.

So there is no risk upgrading MariaDB independently?

Again: Wouldn’t upgrading my NC version also solve the problem? And yes, I did see @just mentioning, that this is a problem of my Ubuntu installation.

Greetings Wolfgang

There’s no problem with your Ubuntu installation. The repo you added when you installed MariaDB no longer exists because the version of MariaDB it served is no longer maintained.

No, if you do a manual installation, you’re responsible for managing all the dependencies such as database, PHP, web server, etc. But you could have used 10.6 (long-term) instead of 10.9 (short-term), which is still the recommended version by Nextcloud.

Or you could have used the version from the Ubuntu repos, instead of adding the repo for a short-term release version that was only supported for one year.

If you are looking for an all-in-one solution that does everything for you, I’d suggest you have a look at https://nextcloud.com/all-in-one/

Well, there’s always a certain risk of something going wrong, so you should definitely have a BACKUP! before you start. However if you read the documentation on how to upgrade between major releases of MariaDB, and as long as you only upgrade to a version that works with Nextcloud, you should be fine.

Also, while 10.6 is still the recommended version by Nextcloud, 10.11 will definitely work. So I’d recommend upgrading to that, as downgrading MariaDB is not officially supported.