sudo apt install mariadb-client я пробовал удалять mariadb и ставить заново, но это не помогло
Reading package lists... Done Building dependency tree... Done Reading state information... Done mariadb-client is already the newest version (1:10.6.8-1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: mariadb-server : Depends: mariadb-server-10.6 (>= 1:10.6.8-1) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt –fix-broken install
Reading package lists... Done Building dependency tree... Done Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: mariadb-server-10.6 Suggested packages: mailx mariadb-test netcat-openbsd The following NEW packages will be installed: mariadb-server-10.6 0 upgraded, 1 newly installed, 0 to remove and 620 not upgraded. 1 not fully installed or removed. Need to get 0 B/3,348 kB of archives. After this operation, 44.6 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... (Reading database ... 706887 files and directories currently installed.) Preparing to unpack .../mariadb-server-10.6_1%3a10.6.8-1_amd64.deb ... Failed to stop mariadb.service: Unit mariadb.service not loaded. invoke-rc.d: initscript mariadb, action "stop" failed. Failed to stop mysql.service: Unit mysql.service not loaded. invoke-rc.d: initscript mysql, action "stop" failed. Attempt to stop MariaDB/MySQL server returned exitcode 5 There is a MariaDB/MySQL server running, but we failed in our attempts to stop it. Stop it yourself and try again! dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.6_1%3a10.6.8-1_amd64.deb (--unpack): new mariadb-server-10.6 package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mariadb-server-10.6_1%3a10.6.8-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)