Installation App schlägt fehl / mariadb Server lässt sich nicht stoppen

tmdnw

Member
Sep 25, 2023
45
3
8
Guten Morgen,

wir wollten die App https://docs-next.bennetg.de/products/proxmox-cp/installation/automated-install testen, stoßen aber auf folgendes Problem:

The following packages have unmet dependencies:
mariadb-plugin-provider-bzip2 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lz4 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lzma : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lzo : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-snappy : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Versucht haben wir schon:

'apt --fix-broken install'

Wenn ich das Versuche:
systemctl stop mariadb.service
passiert das:
Failed to stop mariadb.service: Unit mariadb.service not loaded.

Der Hersteller kann damit nichts anfangen, es ist eine reine Testumgebung.

Danke für eure Hilfe.
Grüße
 
ich fuerchte ohne mehr infos wird dir da niemand weiterhelfen koennen.. wo versuchst du das zu installieren? was ist der gesamte output? ...
 
Sorry, klar:

ich hab einen proxmox Host auf dem ich das versuche zu installieren:

./auto-install.sh -y -k downloadkey
============================================================================================
Full Server Setup 0.1.0 by Bennet Gallein
This script is seperated in 5 Stages:
1. Requirements (Packages that should already be installed or wont break anything running)
2. PHP Repositories and Dependencies
3. Apache installation and configuration
4. MariaDB Installation and configuration
5. Download of your product and installation
And that's it! After that, you can continue with the general setup
============================================================================================
OK, starting.
Detected OS: debian 12
It is recommended to do a full system upgrade. Are you ok with that? [y]es or [n]p.
Running apt update && apt upgrade
Hit:1 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://download.proxmox.com/debian/ceph-reef bookworm InRelease
Hit:4 http://ftp.de.debian.org/debian bookworm InRelease
Hit:5 http://ftp.de.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
51 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-plugin-provider-bzip2 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lz4 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lzma : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lzo : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-snappy : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
ich wuerde mal erst versuchen updates zu installieren und den output hier posten.. "apt-cache policy" waere eventuell auch noch spannend..
 
Schon beim stoppen der DB komm ich nicht weiter:

sudo systemctl stop mariadb
Failed to stop mariadb.service: Unit mariadb.service not loaded.

wenn ich es versuche zu deinstallieren sagt er, es ist garnicht vorhanden:

sudo apt-get remove mariadb-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'mariadb-server' is not installed, so not removed

sofern ich es dann wieder installieren will:

sudo apt install mariadb-server mariadb-backup
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mariadb-backup is already the newest version (1:10.11.6-0+deb12u1).
Suggested packages:
mariadb-test netcat-openbsd
The following NEW packages will be installed:
mariadb-server
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
25 not fully installed or removed.
Need to get 0 B/3,655 kB of archives.
After this operation, 55.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 72265 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.6-0+deb12u1_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_1%3a10.11.6-0+deb12u1_amd64.deb (--unpack):
new mariadb-server package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server_1%3a10.11.6-0+deb12u1_amd64.deb

apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://download.proxmox.com/debian/ceph-reef bookworm/test amd64 Packages
release o=Proxmox,a=stable,n=bookworm,l=Proxmox Ceph 18 Reef Debian Repository,c=test,b=amd64
origin download.proxmox.com
500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
release o=Proxmox,a=stable,n=bookworm,l=Proxmox Debian Repository,c=pve-no-subscription,b=amd64
origin download.proxmox.com
500 http://security.debian.org bookworm-security/contrib amd64 Packages
release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=contrib,b=amd64
origin security.debian.org
500 http://security.debian.org bookworm-security/main amd64 Packages
release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://ftp.de.debian.org/debian bookworm-updates/contrib amd64 Packages
release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=contrib,b=amd64
origin ftp.de.debian.org
500 http://ftp.de.debian.org/debian bookworm-updates/main amd64 Packages
release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=amd64
origin ftp.de.debian.org
500 http://ftp.de.debian.org/debian bookworm/contrib amd64 Packages
release v=12.6,o=Debian,a=stable,n=bookworm,l=Debian,c=contrib,b=amd64
origin ftp.de.debian.org
500 http://ftp.de.debian.org/debian bookworm/main amd64 Packages
release v=12.6,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=amd64
origin ftp.de.debian.org
 
kannst du bitte mal "apt update" ausfuehren?
 
und dann "apt full-upgrade -s" und den output hier posten!
 
root@pm02:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:3 http://download.proxmox.com/debian/ceph-reef bookworm InRelease
Hit:4 http://ftp.de.debian.org/debian bookworm InRelease
Get:5 http://ftp.de.debian.org/debian bookworm-updates InRelease [55.4 kB]
Fetched 55.4 kB in 1s (87.5 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
51 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pm02:~# apt full-upgrade -s
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-plugin-provider-bzip2 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lz4 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lzma : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-lzo : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
mariadb-plugin-provider-snappy : Depends: mariadb-server (>= 1:10.11.1-1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
und apt install -f -s
 
apt install -f -s
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
galera-4 libcgi-fast-perl libcgi-pm-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-template-perl
mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
mariadb-plugin-provider-snappy mariadb-server mariadb-server-core pv
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
mariadb-server
Suggested packages:
mariadb-test netcat-openbsd
The following NEW packages will be installed:
mariadb-server
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
25 not fully installed or removed.
Inst mariadb-server (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-server (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-plugin-provider-bzip2 (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf libdbi-perl (1.643-4 Debian:12.6/stable [amd64])
Conf libfcgi-perl (0.82+ds-2 Debian:12.6/stable [amd64])
Conf mariadb-client-core (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf libdbd-mariadb-perl (1.22-1+b1 Debian:12.6/stable [amd64])
Conf galera-4 (26.4.18-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-plugin-provider-lzma (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-server-core (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-backup (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf libhtml-template-perl (2.97-2 Debian:12.6/stable [all])
Conf libfcgi0ldbl (2.4.2-2 Debian:12.6/stable [amd64])
Conf libdaxctl1 (76.1-1 Debian:12.6/stable [amd64])
Conf libterm-readkey-perl (2.38-2+b1 Debian:12.6/stable [amd64])
Conf mariadb-plugin-provider-snappy (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf libcgi-fast-perl (1:2.15-1 Debian:12.6/stable [all])
Conf libconfig-inifiles-perl (3.000003-2 Debian:12.6/stable [all])
Conf libndctl6 (76.1-1 Debian:12.6/stable [amd64])
Conf libmariadb3 (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-client (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-plugin-provider-lz4 (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf mariadb-plugin-provider-lzo (1:10.11.6-0+deb12u1 Debian:12.6/stable [amd64])
Conf pv (1.6.20-1 Debian:12.6/stable [amd64])
Conf libfcgi-bin (2.4.2-2 Debian:12.6/stable [amd64])
Conf libcgi-pm-perl (4.55-1 Debian:12.6/stable [all])
Conf libpmem1 (1.12.1-2 Debian:12.6/stable [amd64])
 
okay, dann jetzt nochmal ohne -s, also einfach nur "apt install -f"
 
apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
galera-4 libcgi-fast-perl libcgi-pm-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-template-perl
mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
mariadb-plugin-provider-snappy mariadb-server mariadb-server-core pv
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
mariadb-server
Suggested packages:
mariadb-test netcat-openbsd
The following NEW packages will be installed:
mariadb-server
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
25 not fully installed or removed.
Need to get 0 B/3,655 kB of archives.
After this operation, 55.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 72265 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.6-0+deb12u1_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_1%3a10.11.6-0+deb12u1_amd64.deb (--unpack):
new mariadb-server package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server_1%3a10.11.6-0+deb12u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
"ps faxl | grep -i -e mysql -e maria" ?
 
ps faxl | grep -i -e mysql -e maria
0 0 728117 722870 20 0 6332 1792 pipe_r S+ pts/0 0:00 \_ grep -i -e mysql -e maria
0 0 1160 1 20 0 2576 1152 do_wai S ? 0:00 /bin/sh /usr/local/emps/bin/mysqld_safe --defaults-file=/usr/local/emps/etc/my.cnf --basedir=/usr/local/emps --datadir=/usr/local/emps/var/mysql --pid-file=/usr/local/emps/var/mysql/mysqld.pid --socket=/usr/local/emps/var/mysql/mysql.sock --innodb
4 1000 1575 1160 20 0 635636 44772 do_sys Sl ? 0:28 \_ /usr/local/emps/bin/mysqld --defaults-file=/usr/local/emps/etc/my.cnf --basedir=/usr/local/emps --datadir=/usr/local/emps/var/mysql --plugin-dir=/usr/local/emps/lib/plugin --user=mysql --innodb --log-error=/usr/local/emps/var/log/mysqld.log --pid-file=/usr/local/emps/var/mysql/mysqld.pid --socket=/usr/local/emps/var/mysql/mysql.sock --port=3178

:)
 
laeuft das direkt am host? scheinbar ist das nicht kompatibel mit den Debian mysql/mariadb paketen..
 
jein. Es läuft auf dem Proxmoxhost, der ist allerdings virtuell... ich schätze das auch das das Problem ist... ich bau mal die Hardwareteststellung auf...
 
ja, bei sowas ists meistens besser das klar zu trennen, und moeglichst wenig "extra" dinge am host selbst laufen zu haben (egal ob der wiederum als VM laeuft oder nicht ;))
 
ja, ist auch grundsätzlich mein Plan, hatte das aber so verstanden, dass es in diesem Fall wohl garnicht anders geht? Ich schau mal nach, danke schonmal!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!