Vor einiger Zeit versuchte ich auf einem Ubuntu 20.4 Desktop einen LAMP Stack zu installieren. Das Vorhaben schlug fehl, ich verfolgte die Sache nicht weiter, und kam erst gestern darauf zurück: zuerst machte ich alle apt install Befehle mit apt remove rückgängig, dann entschied ich mich statt MySQL MariaDB zu installieren.
Dies schlug fehl, weil ich MySQL offenbar nicht vollständig entfernt hatte. Das System inbterpretierte den Versuch MariaDB zu installieren als unzulässigen Dowgrade von mysql-server-8.0 und versetzte deshalb MySQL in "frozen mode".
Aus diesem Schlamassel komme ich nun nicht mehr heraus.
Hier ist die Fehlermeldung:
This MySQL or variant installation has entered "frozen mode". Maintainer scripts will avoid making changes or starting the daemon until manually released from this state. See /usr/share/doc/mysql-common/README for general information about this mode. In this particular case, an incompatible downgrade attempt has been detected. This can be resolved in one of two ways: 1. Change the contents of /var/lib/mysql/ to contain database data that is compatible with the currently installed MySQL or variant daemon version. For example: you could restore from a backup. Alternatively you could do a dump using a future version binary and then a restore using the current version binary. 2. Switch to a MySQL or variant daemon version that is compatible with the data currently in /var/lib/mysql/. For example, if you have attempted a downgrade from mysql-server-5.7 to mysql-server-5.6, you could "apt install mysql-server-5.7" again. Please resolve this situation and only then remove the /etc/mysql/FROZEN symlink. You can then run "dpkg-reconfigure <package>" where <package> should usually be in the form <variant>-server-<version>.
Damit kann ich leider nichts anfangen.
Der Versuch, MySQL zu enfernen und von neuem zu installieren geht auch auf verschiedenste Weisen in die Hose. Hier ist eine davon mit einer typischen Fehlermeldung:
$ sudo apt autoremove --purge mysql-server-8.0 [sudo] password for anark: Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED mecab-ipadic* mecab-ipadic-utf8* mecab-utils* mysql-server-8.0* 0 to upgrade, 0 to newly install, 4 to remove and 0 not to upgrade. 1 not fully installed or removed. After this operation, 56.0 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 282033 files and directories currently installed.) Removing mysql-server-8.0 (8.0.26-0ubuntu0.20.04.2) ... Failed to stop mysql.service: Unit mysql.service not loaded. invoke-rc.d: initscript mysql, action "stop" failed. dpkg: error processing package mysql-server-8.0 (--remove): installed mysql-server-8.0 package pre-removal script subprocess returned error exit status 1 dpkg: too many errors, stopping Failed to stop mysql.service: Unit mysql.service not loaded. invoke-rc.d: initscript mysql, action "stop" failed. Failed to start mysql.service: Unit mysql.service not found. invoke-rc.d: initscript mysql, action "start" failed. Unit mysql.service could not be found. dpkg: error while cleaning up: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: mysql-server-8.0 Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)
Besten Dank für jede Anregung!
Moderiert von ChickenLipsRfun2eat:
Thema in einen passenden Forenbereich verschoben. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“) in jedem Forenbereich. Danke.