Package mariadb-common is not configured yet

$ sudo apt install --fix-broken
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-common (1:10.5.18-0+deb11u1) …
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn’t exist
dpkg: error processing package mariadb-common (–configure):
installed mariadb-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
mariadb-common
Updating coolwsd systemplate
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo dpkg --configure -a
Setting up mariadb-common (1:10.5.18-0+deb11u1) …
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn’t exist
dpkg: error processing package mariadb-common (–configure):
installed mariadb-common package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent processing triggers for mariadb-server-10.5:
mariadb-server-10.5 depends on mariadb-common (>= 1:10.5.15-0+deb11u1); however:
Package mariadb-common is not configured yet.

dpkg: error processing package mariadb-server-10.5 (–configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
mariadb-common
mariadb-server-10.5

… Any chance you can provide some context as asked by the goddamn support template instead of just yolocopypasting some random logs …

Good day,
Sorry, I’m very sorry about that. I vow to do better. I will gather all the information for a proper support ticket and then add it here. Many greetings

A friendly hello to all forum members

My YunoHost server

Hardware: VPS online gekauft

YunoHost Version: 11.0.10.2

Server hardware architecture is openvz amd64

Server runs under Linux kernel 4.19.0

Server runs under Debian 11.5

Server running YunoHost 11.0.10.2 (stable)

I have access to my server: Über SSH | über den Webadmin |

Are you in a special context or have you made certain settings on your YunoHost instance? : no

Description of my problem

Yonohost Administration (web interface) diagnosis function does not bring any errors (all O. K.)

Yonohost Administration (web interface) Function: Update system

Error message

Error: "400

Action: “PUT” /yunohost/api/upgrade/system

Error message:

You can’t do this right now because dpkg/APT (the system package manager) seems to be in a broken state… You can try to solve this problem by connecting via SSH and running sudo apt install --fix-broken and/or sudo dpkg --configure -a.

The specified behls do not lead to any troubleshooting

I have carried out these actions

here are the SSH transcripts

$ sudo apt install --fix-broken
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-common (1:10.5.18-0+deb11u1) …
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn’t exist
dpkg: error processing package mariadb-common (–configure):
installed mariadb-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
mariadb-common

Updating coolwsd systemplate

E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo dpkg --configure -a
Setting up mariadb-common (1:10.5.18-0+deb11u1) …
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn’t exist
dpkg: error processing package mariadb-common (–configure):
installed mariadb-common package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent processing triggers for mariadb-server-10.5:
mariadb-server-10.5 depends on mariadb-common (>= 1:10.5.15-0+deb11u1); however:
Package mariadb-common is not configured yet.

dpkg: error processing package mariadb-server-10.5 (–configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
mariadb-common
mariadb-server-10.5

Best regards

A friendly hello to all forum members

Uninstalling Colobora Online brought this log:
args:
app: collabora
purge: false
ended_at: 2023-01-30 16:21:45.572541
env:
BASH_XTRACEFD: ‘7’
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_jgyj0iay
YNH_APP_ID: collabora
YNH_APP_INSTANCE_NAME: collabora
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 22.05.8.2~ynh2
YNH_APP_PURGE: ‘0’
YNH_ARCH: amd64
YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_jgyj0iay/scripts
YNH_INTERFACE: api
YNH_STDRETURN: /tmp/tmpswbnxj11/stdreturn
error: “Diese Aktion hat unkonfigurierte Pakete verursacht, welche durch dpkg/apt
\ (die Paketverwaltungen dieses Systems) zur\xFCckgelassen wurden… Du kannst versuchen
\ dieses Problem zu l\xF6sen, indem du ‘sudo apt install --fix-broken’ und/oder
\ ‘sudo dpkg --configure -a’ ausf\xFChrst.”
interface: api
operation: app_remove
parent: null
related_to:

    • app
  • collabora

started_at: 2023-01-30 16:21:38.648716

success: false

yunohost_version: 11.0.10.2

============

2023-01-30 17:21:38,659: INFO - collabora wird entfernt…

2023-01-30 17:21:38,719: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./remove” 7>&1’]’

2023-01-30 17:21:38,726: DEBUG - + source _common.sh

2023-01-30 17:21:38,726: DEBUG - ++ pkg_dependencies=‘coolwsd code-brand hunspell-de-de hunspell-en-gb hunspell-fr hunspell’

2023-01-30 17:21:38,726: DEBUG - + source /usr/share/yunohost/helpers

2023-01-30 17:21:38,727: DEBUG - +++ grep xtrace

2023-01-30 17:21:38,729: DEBUG - +++ set +o

2023-01-30 17:21:38,729: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’

2023-01-30 17:21:38,729: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’

2023-01-30 17:21:38,855: INFO - [+++…] > Loading installation settings…

2023-01-30 17:21:38,857: DEBUG - + app=collabora

2023-01-30 17:21:38,857: DEBUG - ++ ynh_app_setting_get --app=collabora --key=domain

2023-01-30 17:21:38,857: DEBUG - ++ local _globalapp=collabora

2023-01-30 17:21:38,894: DEBUG - ++ app=collabora

2023-01-30 17:21:38,894: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]

2023-01-30 17:21:38,894: DEBUG - ++ ynh_app_setting get collabora domain

2023-01-30 17:21:38,948: DEBUG - + domain=domain2.tld

2023-01-30 17:21:38,948: DEBUG - ++ ynh_app_setting_get --app=collabora --key=port

2023-01-30 17:21:38,949: DEBUG - ++ local _globalapp=collabora

2023-01-30 17:21:38,982: DEBUG - ++ app=collabora

2023-01-30 17:21:38,982: DEBUG - ++ [[ port =~ (unprotected|protected|skipped)_ ]]

2023-01-30 17:21:38,982: DEBUG - ++ ynh_app_setting get collabora port

2023-01-30 17:21:39,038: DEBUG - + port=9980

2023-01-30 17:21:39,039: DEBUG - + ynh_exec_warn_less yunohost service status coolwsd

2023-01-30 17:21:39,039: DEBUG - + [[ 4 -eq 1 ]]

2023-01-30 17:21:39,039: DEBUG - + yunohost service status coolwsd

2023-01-30 17:21:39,507: INFO - [###+++…] > Removing coolwsd service integration…

2023-01-30 17:21:39,508: DEBUG - + yunohost service remove coolwsd

2023-01-30 17:21:39,899: DEBUG - Service ‘coolwsd’ removed

2023-01-30 17:21:40,007: INFO - [######++++…] > Stopping and removing the systemd service…

2023-01-30 17:21:40,008: DEBUG - + ynh_remove_systemd_config --service=coolwsd

2023-01-30 17:21:40,019: DEBUG - + local service=coolwsd

2023-01-30 17:21:40,019: DEBUG - + local finalsystemdconf=/etc/systemd/system/coolwsd.service

2023-01-30 17:21:40,019: DEBUG - + ‘[’ -e /etc/systemd/system/coolwsd.service ‘]’

2023-01-30 17:21:40,108: INFO - [##########+++…] > Removing dependencies…

2023-01-30 17:21:40,109: DEBUG - + touch /etc/apt/apt.conf.d/25loolwsd

2023-01-30 17:21:40,112: DEBUG - + ynh_remove_app_dependencies

2023-01-30 17:21:40,112: DEBUG - + local dep_app=collabora

2023-01-30 17:21:40,113: DEBUG - + local current_dependencies=

2023-01-30 17:21:40,113: DEBUG - + ynh_package_is_installed --package=collabora-ynh-deps

2023-01-30 17:21:40,127: DEBUG - + ynh_wait_dpkg_free

2023-01-30 17:21:40,372: DEBUG - + return 0

2023-01-30 17:21:40,372: DEBUG - + dpkg-query --show ‘–showformat=${Status}’ collabora-ynh-deps

2023-01-30 17:21:40,372: DEBUG - + grep --count ‘ok installed’

2023-01-30 17:21:40,393: DEBUG - ++ dpkg-query --show ‘–showformat=${Depends}’ collabora-ynh-deps

2023-01-30 17:21:40,411: DEBUG - + current_dependencies='coolwsd, code-brand, hunspell-de-de, hunspell-en-gb, hunspell-fr, hunspell ’

2023-01-30 17:21:40,411: DEBUG - + current_dependencies='coolwsd, code-brand, hunspell-de-de, hunspell-en-gb, hunspell-fr, hunspell ’

2023-01-30 17:21:40,411: DEBUG - + apt-mark showhold

2023-01-30 17:21:40,412: DEBUG - + grep -q -w collabora-ynh-deps

2023-01-30 17:21:40,466: DEBUG - + ynh_package_autopurge collabora-ynh-deps

2023-01-30 17:21:40,467: DEBUG - + ynh_apt autoremove --purge collabora-ynh-deps

2023-01-30 17:21:40,467: DEBUG - + ynh_wait_dpkg_free

2023-01-30 17:21:40,655: DEBUG - + return 0

2023-01-30 17:21:40,656: DEBUG - + LC_ALL=C

2023-01-30 17:21:40,656: DEBUG - + DEBIAN_FRONTEND=noninteractive

2023-01-30 17:21:40,656: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge collabora-ynh-deps

2023-01-30 17:21:40,689: DEBUG - Reading package lists…

2023-01-30 17:21:40,951: DEBUG - Building dependency tree…

2023-01-30 17:21:40,953: DEBUG - Reading state information…

2023-01-30 17:21:41,413: DEBUG - The following packages will be REMOVED:

2023-01-30 17:21:41,413: DEBUG - code-brand* collabora-ynh-deps* collaboraoffice* collaboraoffice-ure*

2023-01-30 17:21:41,413: DEBUG - collaboraofficebasis-calc* collaboraofficebasis-core*

2023-01-30 17:21:41,413: DEBUG - collaboraofficebasis-draw* collaboraofficebasis-en-us*

2023-01-30 17:21:41,413: DEBUG - collaboraofficebasis-extension-pdf-import*

2023-01-30 17:21:41,414: DEBUG - collaboraofficebasis-graphicfilter* collaboraofficebasis-images*

2023-01-30 17:21:41,414: DEBUG - collaboraofficebasis-impress* collaboraofficebasis-math*

2023-01-30 17:21:41,414: DEBUG - collaboraofficebasis-ooofonts* collaboraofficebasis-ooolinguistic*

2023-01-30 17:21:41,414: DEBUG - collaboraofficebasis-writer* coolwsd* dictionaries-common* emacsen-common*

2023-01-30 17:21:41,414: DEBUG - hunspell* hunspell-de-de* hunspell-en-gb* hunspell-fr*

2023-01-30 17:21:41,414: DEBUG - hunspell-fr-classical* libhunspell-1.7-0*

2023-01-30 17:21:41,917: DEBUG - 0 upgraded, 0 newly installed, 25 to remove and 79 not upgraded.

2023-01-30 17:21:41,917: DEBUG - 1 not fully installed or removed.

2023-01-30 17:21:41,917: DEBUG - After this operation, 740 MB disk space will be freed.

2023-01-30 17:21:41,935: DEBUG - Setting up mariadb-common (1:10.5.18-0+deb11u1) …

2023-01-30 17:21:41,945: WARNING - update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn’t exist

2023-01-30 17:21:41,951: WARNING - dpkg: error processing package mariadb-common (–configure):

2023-01-30 17:21:41,952: WARNING - installed mariadb-common package post-installation script subprocess returned error exit status 2

2023-01-30 17:21:41,961: WARNING - Errors were encountered while processing:

2023-01-30 17:21:41,962: WARNING - mariadb-common

2023-01-30 17:21:42,172: DEBUG - Updating coolwsd systemplate

2023-01-30 17:21:42,507: WARNING - E: Sub-process /usr/bin/dpkg returned an error code (1)

2023-01-30 17:21:42,599: DEBUG - + ynh_remove_nginx_config

2023-01-30 17:21:42,599: DEBUG - + ynh_secure_remove --file=/etc/nginx/conf.d/domain2.tld.d/collabora.conf

2023-01-30 17:21:42,599: INFO - [#############+++…] > Removing NGINX web server configuration…

2023-01-30 17:21:42,618: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload

2023-01-30 17:21:42,706: DEBUG - + service_name=nginx

2023-01-30 17:21:42,706: DEBUG - + action=reload

2023-01-30 17:21:42,706: DEBUG - + line_match=

2023-01-30 17:21:42,707: DEBUG - + length=20

2023-01-30 17:21:42,707: DEBUG - + log_path=/var/log/nginx/nginx.log

2023-01-30 17:21:42,707: DEBUG - + timeout=300

2023-01-30 17:21:42,707: DEBUG - + ‘[’ reload == stop ‘]’

2023-01-30 17:21:42,707: DEBUG - + ‘[’ reload == reload ‘]’

2023-01-30 17:21:42,707: DEBUG - + action=reload-or-restart

2023-01-30 17:21:42,707: DEBUG - + systemctl reload-or-restart nginx

2023-01-30 17:21:42,877: DEBUG - + ynh_secure_remove --file=/etc/coolwsd

2023-01-30 17:21:42,979: INFO - [####################] > Removal of collabora completed

2023-01-30 17:21:43,981: SUCCESS - collabora wurde entfernt

2023-01-30 17:21:44,107: DEBUG - Berechtigung ‘collabora.main’ gelöscht

2023-01-30 17:21:44,110: DEBUG - Vollständiges Log dieser Operation: ‘Lösche Berechtigung ‘collabora’

2023-01-30 17:21:44,255: DEBUG - The permission database has been resynchronized

2023-01-30 17:21:44,405: DEBUG - SSOwat-Konfiguration neu generiert

2023-01-30 17:21:44,420: DEBUG - Checking that required services are up and running…

Best regards

Then let’s try to

yunohost tools regen-conf mysql

Hello and thank you very much.

The command was executed. But the error remained the same. Even after restarting the server.

Best regards

Then can you share the output of the command (yunohost tools regen-conf mysql)

Hello and thank you very much.

the command sudo yunohost tools rain-conf mysql is executed. But there is no output. After execution, the input prompt appears again.

Best regards

Hallo und vielen Dank.

Neuer Versuch, jetzt kommt diese Ausschrift:

usage: yunohost tools
{adminpw,maindomain,postinstall,update,upgrade,shell,shutdown,reboot,regen-conf,versions,migrations}

[-h]
yunohost tools: error: argument {adminpw,maindomain,postinstall,update,upgrade,shell,shutdown,reboot,regen-conf,versions,migrations}: invalid choice: ‘rain-conf’ (choose from ‘adminpw’, ‘maindomain’, ‘postinstall’, ‘update’, ‘upgrade’, ‘shell’, ‘shutdown’, ‘reboot’, ‘regen-conf’, ‘versions’, ‘migrations’)

Hallo und vielen Dank.

Der Befehl: sudo systemctl status mariadb.service

brachte dieses Ergebnis:

   Docs: man:mariadbd(8)
         https://mariadb.com/kb/en/library/systemd/
Process: 1629964 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 1629966 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 1629968 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=>
Process: 1629996 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 1629998 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)

Main PID: 1629976 (mariadbd)
Status: “Taking your SQL requests now…”
Tasks: 19 (limit: 19660)
Memory: 146.8M
CGroup: /system.slice/mariadb.service
└─1629976 /usr/sbin/mariadbd

Feb 13 16:20:51 xyz mariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] Plugin ‘FEEDBACK’ is disabled.
Feb 13 16:20:51 xyz mariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Feb 13 16:20:51 xyz mariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] Server socket created on IP: ‘::’.
Feb 13 16:20:51 xyz mariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] Reading of all Master_info entries succeeded
Feb 13 16:20:51 xy zmariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] Added new Master_info ‘’ to hash table
Feb 13 16:20:51 xyz mariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] /usr/sbin/mariadbd: ready for connections.
Feb 13 16:20:51 xyz mariadbd[1629976]: Version: ‘10.5.15-MariaDB-0+deb11u1’ socket: ‘/run/mysqld/mysqld.sock’ port: 3306 Debian 11
Feb 13 16:20:51 xyz systemd[1]: Started MariaDB 10.5.15 database server.
Feb 13 16:20:51 xyz/etc/mysql/debian-start[1630018]: Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables
Feb 13 16:20:51 xyz mariadbd[1629976]: 2023-02-13 16:20:51 0 [Note] InnoDB: Buffer pool(s) load completed at 230213 16:20:51

Hallo und vielen Dank.

Ich konnte das Problem so lösen:

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info-old

sudo mkdir /var/lib/dpkg/info

sudo apt-get update

sudo apt-get -f install

sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info-old

sudo rm -rf /var/lib/dpkg/info

sudo mv /var/lib/dpkg/info-old /var/lib/dpkg/info

sudo apt-get update

sudo apt-get upgrade

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.