[SOLVED] Matrix server can't federate

Sorry, I went on reinstalling before reading your last two replies (even though I’m sure Element had a visitor access and the subdomain a Let’s Encrypt certificate).

But now I’m having issues installing synapse again apparently?
This is the log.
The main issue seems to be inability to install dependencies:

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - before the override, which is most probably a packaging bug, to recover you
Info: DEBUG - can remove the override manually with dpkg-statoverride
Info: DEBUG - + ynh_package_install --fix-broken
Info: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
Info: DEBUG - + ynh_wait_dpkg_free
Info: DEBUG - + return 0
Info: DEBUG - + LC_ALL=C
Info: DEBUG - + DEBIAN_FRONTEND=noninteractive
Info: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
Info: DEBUG - Reading package lists...
Info: DEBUG - Building dependency tree...
Info: DEBUG - Reading state information...
Info: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Info: DEBUG - + [[ -n /tmp/tmp.Wu5EWvIx0J ]]
Info: DEBUG - + rm --recursive --force /tmp/tmp.Wu5EWvIx0J
Info: DEBUG - + ynh_package_is_installed synapse-ynh-deps
Info: DEBUG - + ynh_wait_dpkg_free
Info: DEBUG - + return 0
Info: DEBUG - + dpkg-query --show '--showformat=${Status}' synapse-ynh-deps
Info: DEBUG - + grep --count 'ok installed'
Info: DEBUG - + ynh_die '--message=Unable to install dependencies'
Warning: Removing the app following the installation failure...
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Stopping and removing the systemd service
Info: [##+.................] > Removing the PostgreSQL database
Warning: Database matrix_synapse not found
Warning: User matrix_synapse not found
Info: [###++++++++.........] > Removing dependencies
Warning: E: Unable to locate package synapse-ynh-deps
Info: [###########+........] > Removing app main directory
Info: '/opt/yunohost/matrix-synapse' wasn't deleted because it doesn't exist.
Info: '/var/www/synapse' wasn't deleted because it doesn't exist.
Info: '/var/log/matrix-synapse' wasn't deleted because it doesn't exist.
Info: '/etc/matrix-synapse' wasn't deleted because it doesn't exist.
Info: '/etc/default/matrix-synapse' wasn't deleted because it doesn't exist.
Info: '/etc/default/coturn-synapse' wasn't deleted because it doesn't exist.
Info: '/etc/nginx/conf.d/matrix.mms.nohost.me.d/synapse_server_name.conf' wasn't deleted because it doesn't exist.
Info: [############+.......] > Removing nginx web server configuration
Info: '/etc/nginx/conf.d/matrix.mms.nohost.me.d/synapse.conf' wasn't deleted because it doesn't exist.
Info: '/etc/php/7.3/fpm/pool.d/synapse.conf' wasn't deleted because it doesn't exist.
Info: [#############+......] > Removing logrotate configuration
Info: [##############......] > Closing port 8448
Info: [##############+.....] > Closing port 5349
Info: [###############.....] > Closing port 5350
Info: [###############+++++] > Removing fail2ban configuration...
Info: '/etc/fail2ban/jail.d/synapse.conf' wasn't deleted because it doesn't exist.
Info: '/etc/fail2ban/filter.d/synapse.conf' wasn't deleted because it doesn't exist.
Info: [####################] > Removing the dedicated system user
Warning: The user matrix-synapse was not found
Info: Due of the backup core only feature the data directory in '/home/yunohost.app/matrix-synapse' was not removed. It need to be removed manually to purge app user data.
Info: [####################] > Removal of synapse completed

Might it be because the previous installation hasn’t been purged properly?