Hello people,
i am running Plesk Obsidian 18.0.30.1 and yesterday afternoon i have performed a dist-upgrade to Ubuntu 20.04 through SSH.
During the upgrade a mysql-server-8.0 package has been installed and after having fixed some configuration issues given by the strict mode i have succesfully managed to bring my website back online (and plesk application of course).
However tonight something happened because when i opened my website there were db issues again. Apparently either mariadb has been automatically installed by some cron job or just the service started (i don't really know) but in anycase the mariadb-server was running and was giving troubles with
InnoDB: Invalid flags 0x4000 in ./ibdata1
because of that i have tried to remove mariadb and go back to mysql-server-8.0 package but something went wrong and i am now stuck in a dependency deadlock:
-plesk-mysql-server needs either mysql or mariadb
-I can't install maria-db because it will automatically try to remove mysql-server, but apparently that is not possible
-Then i try to install mysql-server but
-So i try to fix the broken install
And we are back to square one. What can i do?
i am running Plesk Obsidian 18.0.30.1 and yesterday afternoon i have performed a dist-upgrade to Ubuntu 20.04 through SSH.
During the upgrade a mysql-server-8.0 package has been installed and after having fixed some configuration issues given by the strict mode i have succesfully managed to bring my website back online (and plesk application of course).
However tonight something happened because when i opened my website there were db issues again. Apparently either mariadb has been automatically installed by some cron job or just the service started (i don't really know) but in anycase the mariadb-server was running and was giving troubles with
InnoDB: Invalid flags 0x4000 in ./ibdata1
because of that i have tried to remove mariadb and go back to mysql-server-8.0 package but something went wrong and i am now stuck in a dependency deadlock:
-plesk-mysql-server needs either mysql or mariadb
-I can't install maria-db because it will automatically try to remove mysql-server, but apparently that is not possible
Code:
dpkg: error processing package mysql-server-8.0 (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
-Then i try to install mysql-server but
Code:
mysql-server-8.0 is already the newest version (8.0.21-0ubuntu0.20.04.4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
dbconfig-mysql : Depends: default-mysql-client or
virtual-mysql-client
mariadb-server : Depends: mariadb-server-10.4 (>= 1:10.4.14+maria~focal) but it is not going to be installed
mysql-server-8.0 : Depends: mysql-client-8.0 (>= 8.0.21-0ubuntu0.20.04.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-So i try to fix the broken install
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libevent-core-2.1-7 libmecab2 mecab-ipadic mecab-ipadic-utf8 mecab-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libmariadb3 mariadb-client-10.4 mariadb-client-core-10.4 mariadb-server-10.4
mariadb-server-core-10.4
Suggested packages:
mariadb-test tinyca
The following packages will be REMOVED:
mysql-server-8.0 mysql-server-core-8.0
The following NEW packages will be installed:
libmariadb3 mariadb-client-10.4 mariadb-client-core-10.4 mariadb-server-10.4
mariadb-server-core-10.4
0 upgraded, 5 newly installed, 2 to remove and 5 not upgraded.
4 not fully installed or removed.
Need to get 0 B/13.0 MB of archives.
After this operation, 18.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
dpkg: mysql-server-8.0: dependency problems, but removing anyway as you requeste
d:
plesk-mysql-server depends on mariadb-server | virtual-mysql-server; however:
Package mariadb-server is not configured yet.
Package virtual-mysql-server is not installed.
Package mysql-server-8.0 which provides virtual-mysql-server is to be removed.
Package mysql-server-5.7 which provides virtual-mysql-server is not installed.
Package mariadb-server-10.3 which provides virtual-mysql-server is not install
ed.
plesk-mysql-server depends on mariadb-server | virtual-mysql-server; however:
Package mariadb-server is not configured yet.
Package virtual-mysql-server is not installed.
Package mysql-server-8.0 which provides virtual-mysql-server is to be removed.
Package mysql-server-5.7 which provides virtual-mysql-server is not installed.
Package mariadb-server-10.3 which provides virtual-mysql-server is not install
ed.
plesk-mysql-server depends on mariadb-server | virtual-mysql-server; however:
Package mariadb-server is not configured yet.
Package virtual-mysql-server is not installed.
Package mysql-server-8.0 which provides virtual-mysql-server is to be removed.
Package mysql-server-5.7 which provides virtual-mysql-server is not installed.
Package mariadb-server-10.3 which provides virtual-mysql-server is not install
ed.
plesk-mysql-server depends on mariadb-server | virtual-mysql-server; however:
Package mariadb-server is not configured yet.
Package virtual-mysql-server is not installed.
Package mysql-server-8.0 which provides virtual-mysql-server is to be removed.
Package mysql-server-5.7 which provides virtual-mysql-server is not installed.
Package mariadb-server-10.3 which provides virtual-mysql-server is not install
ed.
dpkg: error processing package mysql-server-8.0 (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: too many errors, stopping
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)
And we are back to square one. What can i do?