Provision new server failing on mariadb

I’ve provisioned the staging server fine, but now i’m trying to provision production i’m getting the following error. Any ideas?

I’m using Trellis CLI and Ansible 2.13.2, and digital ocean.

'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o
"Dpkg::Options::=--force-confold"       install 'mariadb-
client=1:10.5.17+maria~ubu2004'' failed: E: Failed to fetch http://mariadb.mi
rror.globo.tech/repo/10.5/ubuntu/pool/main/m/mariadb-10.5/mariadb-
common_10.5.17+maria~ubu2004_all.deb  404  Not Found [IP: 74.120.223.18 80]
E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-client-core-10.5_10.5.17+maria~ubu2004_amd64.deb
404  Not Found [IP: 74.120.223.18 80]
E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-client-10.5_10.5.17+maria~ubu2004_amd64.deb  404
Not Found [IP: 74.120.223.18 80]
E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-client_10.5.17+maria~ubu2004_all.deb  404  Not Found
[IP: 74.120.223.18 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-
missing?

E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-common_10.5.17+maria~ubu2004_all.deb  404  Not Found
[IP: 74.120.223.18 80]
E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-client-core-10.5_10.5.17+maria~ubu2004_amd64.deb
404  Not Found [IP: 74.120.223.18 80]
E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-client-10.5_10.5.17+maria~ubu2004_amd64.deb  404
Not Found [IP: 74.120.223.18 80]
E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/mai
n/m/mariadb-10.5/mariadb-client_10.5.17+maria~ubu2004_all.deb  404  Not Found
[IP: 74.120.223.18 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-
missing?
fatal: [165.227.226.136]: FAILED! => {"cache_update_time": 1660575690, "cache_updated": false, "changed": false, "rc": 100, "stderr_lines": ["E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/main/m/mariadb-10.5/mariadb-common_10.5.17+maria~ubu2004_all.deb  404  Not Found [IP: 74.120.223.18 80]", "E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/main/m/mariadb-10.5/mariadb-client-core-10.5_10.5.17+maria~ubu2004_amd64.deb  404  Not Found [IP: 74.120.223.18 80]", "E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/main/m/mariadb-10.5/mariadb-client-10.5_10.5.17+maria~ubu2004_amd64.deb  404  Not Found [IP: 74.120.223.18 80]", "E: Failed to fetch http://mariadb.mirror.globo.tech/repo/10.5/ubuntu/pool/main/m/mariadb-10.5/mariadb-client_10.5.17+maria~ubu2004_all.deb  404  Not Found [IP: 74.120.223.18 80]", "E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n  libdbd-mariadb-perl libdbi-perl libmariadb3 libterm-readkey-perl\n  mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common\nSuggested packages:\n  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl\nThe following NEW packages will be installed:\n  libdbd-mariadb-perl libdbi-perl libmariadb3 libterm-readkey-perl\n  mariadb-client mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common\n0 upgraded, 8 newly installed, 0 to remove and 20 not upgraded.\nNeed to get 2391 kB/3398 kB of archives.\nAfter this operation, 40.0 MB of additional disk space will be used.\nErr:1 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-common all 1:10.5.17+maria~ubu2004\n  404  Not Found [IP: 74.120.223.18 80]\nErr:2 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-client-core-10.5 amd64 1:10.5.17+maria~ubu2004\n  404  Not Found [IP: 74.120.223.18 80]\nErr:3 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-client-10.5 amd64 1:10.5.17+maria~ubu2004\n  404  Not Found [IP: 74.120.223.18 80]\nErr:4 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-client all 1:10.5.17+maria~ubu2004\n  404  Not Found [IP: 74.120.223.18 80]\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following additional packages will be installed:", "  libdbd-mariadb-perl libdbi-perl libmariadb3 libterm-readkey-perl", "  mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common", "Suggested packages:", "  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl", "The following NEW packages will be installed:", "  libdbd-mariadb-perl libdbi-perl libmariadb3 libterm-readkey-perl", "  mariadb-client mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common", "0 upgraded, 8 newly installed, 0 to remove and 20 not upgraded.", "Need to get 2391 kB/3398 kB of archives.", "After this operation, 40.0 MB of additional disk space will be used.", "Err:1 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-common all 1:10.5.17+maria~ubu2004", "  404  Not Found [IP: 74.120.223.18 80]", "Err:2 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-client-core-10.5 amd64 1:10.5.17+maria~ubu2004", "  404  Not Found [IP: 74.120.223.18 80]", "Err:3 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-client-10.5 amd64 1:10.5.17+maria~ubu2004", "  404  Not Found [IP: 74.120.223.18 80]", "Err:4 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 mariadb-client all 1:10.5.17+maria~ubu2004", "  404  Not Found [IP: 74.120.223.18 80]"]}

Take a look at this post:

Thank you, that seems to have done the trick!

For anyone else that might find this, I had to delete my droplet and start again because re-provisioning was still using the old reference. I guess there’s a way to clear that cache, but making a new one felt easier.

You might need to sudo rm /etc/apt/sources.list.d/mirrors_gigenet_com_mariadb_repo_10_5_ubuntu.list if your server is already provisioned

3 Likes