Таким образом, я следую этому руководству для установки MySQL, но я получаю ошибку это predinstalled mariadb-client-core-10.3
находится в конфликте и этом, зависимости не встречены, но я не могу установить их, так как они в зависимости от MySQL. ТАКИМ ОБРАЗОМ, полный журнал здесь:
$sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb
(Reading database ... 290842 files and directories currently installed.)
Preparing to unpack mysql-common_8.0.19-1ubuntu19.10_amd64.deb ...
Unpacking mysql-common (8.0.19-1ubuntu19.10) over (8.0.19-1ubuntu19.10) ...
dpkg: regarding mysql-community-client_8.0.19-1ubuntu19.10_amd64.deb containing mysql-community-client:
mysql-community-client conflicts with mariadb-client-core-10.3
mariadb-client-core-10.3 (version 1:10.3.22-0ubuntu0.19.10.1) is present and installed.
dpkg: error processing archive mysql-community-client_8.0.19-1ubuntu19.10_amd64.deb (--install):
conflicting packages - not installing mysql-community-client
Selecting previously unselected package mysql-client.
Preparing to unpack mysql-client_8.0.19-1ubuntu19.10_amd64.deb ...
Unpacking mysql-client (8.0.19-1ubuntu19.10) ...
Selecting previously unselected package mysql-community-server.
Preparing to unpack mysql-community-server_8.0.19-1ubuntu19.10_amd64.deb ...
Unpacking mysql-community-server (8.0.19-1ubuntu19.10) ...
Selecting previously unselected package mysql-server.
Preparing to unpack mysql-server_8.0.19-1ubuntu19.10_amd64.deb ...
Unpacking mysql-server (8.0.19-1ubuntu19.10) ...
Setting up mysql-common (8.0.19-1ubuntu19.10) ...
dpkg: dependency problems prevent configuration of mysql-client:
mysql-client depends on mysql-community-client (= 8.0.19-1ubuntu19.10); however:
Package mysql-community-client is not installed.
dpkg: error processing package mysql-client (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-community-server:
mysql-community-server depends on mysql-client (= 8.0.19-1ubuntu19.10); however:
Package mysql-client is not configured yet.
mysql-community-server depends on mysql-community-server-core (= 8.0.19-1ubuntu19.10); however:
Package mysql-community-server-core is not installed.
dpkg: error processing package mysql-community-server (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-community-server (= 8.0.19-1ubuntu19.10); however:
Package mysql-community-server is not configured yet.
dpkg: error processing package mysql-server (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-community-client_8.0.19-1ubuntu19.10_amd64.deb
mysql-client
mysql-community-server
mysql-server
$ sudo apt-get remove --purge mariadb-client-core-10.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
akonadi-backend-mysql : Depends: mariadb-client-core-10.3 but it is not going to be installed or
virtual-mysql-client-core
mysql-client : Depends: mysql-community-client (= 8.0.19-1ubuntu19.10) but it is not installable
mysql-community-server : Depends: mysql-community-server-core (= 8.0.19-1ubuntu19.10) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
И когда я работаюsudo apt-get -f install
, это спрашивает меня разрешение удалить, таким образом:
The following packages will be REMOVED:
mysql-client mysql-community-server mysql-server
Что мне делать? Спасибо на Вашем времени.
Попытайтесь установить использование mysql склонного, но в первую очередь, остановить процесс mariadb:
sudo systemctl stop mariadb
Затем продолжите устанавливать mysql через Кв.
sudo apt update
sudo apt install mysql-server
и затем Вы выполняете это, и Вы выполняете шаги
sudo mysql_secure_installation
Затем необходимо смочь войти в оболочку mysql
mysql -uroot -p
Править:
Можно удалить mariadb полностью также и затем выполнить команду sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb
. Команда для удаляет mariadb
apt remove --purge mariadb mariadb-*
ПРЕДУПРЕЖДЕНИЕ: Путем выполнения этого могут быть удалены базы данных.