Provisioning remote server fails on mariadb install

Hey everyone,

I keep getting the same error when trying to provision a fresh DO droplet (18.04 as well as 20.04). I tried rebuilding my droplet to make sure it was a fresh install a couple of times, as this is what other people here have described.

The error is this:

TASK [mariadb : Install MySQL client] *********************************************************************************************************
System info:
  Ansible 2.12.1; Darwin
  Trellis version (per changelog): "Fix #1319 - Improve how ssh_args are loaded"
---------------------------------------------------
'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o
"Dpkg::Options::=--force-confold"       install 'mariadb-client'' failed: E:
Unable to correct problems, you have held broken packages.

E: Unable to correct problems, you have held broken packages.
fatal: [188.166.93.235]: FAILED! => {"cache_update_time": 1640167982, "cache_updated": false, "changed": false, "rc": 100, "stderr_lines": ["E: Unable to correct problems, you have held broken packages."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.13+maria~focal) but it is not installable\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.13+maria~focal) but it is not installable"]}

I’m on Apple Silicon with Parallels Pro, but that shouldn’t be an issue while provisioning right? Anyone have any suggestions?

Edit: I’ve also tried downgrading my Ansible version to 2.9.8, but no luck

My bad, I’ve missed one comment in the thread about Apple Silicon and Trellis.
I had mariadb_ppa: “deb [arch=arm64]” in my main.yml, that is why it didn’t work.

Ps. why is it always after you have searched for days you only find the solution after posting to a forum.

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.