Mariadb apt update Fails on jaleco.com Repository

Today I decided to check for updates on an Ubuntu 20.04 server. sudo apt update failed with these messages:

E: Failed to fetch http://mirror.jaleco.com/mariadb/repo/10.4/ubuntu/dists/focal/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://mirror.jaleco.com/mariadb/repo/10.4/ubuntu focal InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Fortunately someone posted the identical issue and a solution here:

https://forum.virtualmin.com/t/cant-upgrade-packages-at-all/118021/4

I had a mirror for MariaDB that was broken, mirror.jaleco.com which now points to mirror.download.it

I have replaced it with MariaDB’s official mirrors by commenting (#) the old one in mariadb_repo.list and running:
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s — –mariadb-server-version=”mariadb-10.4″

When I ran that, it returned these lines:

# [info] Checking for script prerequisites.
# [info] MariaDB Server version 10.4 is valid
# [info] Repository file successfully written to /etc/apt/sources.list.d/mariadb.list
# [info] Adding trusted package signing keys...
# [info] Running apt-get update...
# [info] Done adding trusted package signing keys

Note that the repo location is now stored in /etc/apt/sources.list.d/mariadb.list, not in /etc/apt/sources.list.d/mariadb_repo.list.

Now, sudo apt update finishes without errors and I was able to proceed to sudo apt upgrade.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.