B
B
Bodryj2020-02-21 02:46:22
ubuntu
Bodryj, 2020-02-21 02:46:22

Ubuntu Server 18.04. Removed mariadb according to instructions from habr. How to reinstall and solve the problem with "you have fixed broken packages"?

Removed mariadb following this instruction, did not install Mysql How to completely remove MariaDB and replace it with MySQL? . Please look at her.

I want to put it back, it gives an error:

$ sudo apt install mariadb-server
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Некоторые пакеты не могут быть установлены. Возможно, то, что вы просите,
неосуществимо, или же вы используете нестабильную версию дистрибутива, где
запрошенные вами пакеты ещё не созданы или были удалены из Incoming.
Следующая информация, возможно, вам поможет:

Следующие пакеты имеют неудовлетворённые зависимости:
 mariadb-server : Зависит: mariadb-server-10.1 (>= 1:10.1.44-0ubuntu0.18.04.1) но он не будет установлен
E: Невозможно исправить ошибки: у вас зафиксированы сломанные пакеты.


Executed all sorts of instructions like:
sudo apt remove --purge mysql-server mysql-client mysql-common
sudo apt autoremove
sudo apt autoclean
sudo apt install mariadb-server
sudo apt-get install -f

Does not help.

PS: I've been learning Linux for the first week. I decided to try the removal and here you are ((. I will monitor the topic and respond promptly.

UPD after 1 hour: I
looked at the apt logs /var/log/apt
Start-Date: 2020-02-21  01:29:00
Commandline: apt-get --purge remove mariadb*
Requested-By:  (1000)
Install: mysql-client-5.7:amd64 (5.7.29-0ubuntu0.18.04.1, automatic), default-mysql-client:amd64 (1.0.4, automatic), mysql-client-core-5.7:amd64 (5.7.29-0ubuntu0.18.04.1, automatic)
Purge: mariadb-common:amd64 (1:10.1.44-0ubuntu0.18.04.1), mariadb-server-core-10.1:amd64 (1:10.1.44-0ubuntu0.18.04.1), mariadb-server-10.1:amd64 (1:10.1.44-0ubuntu0.18.04.1), mariadb-client-10.1:amd64 (1:10.1.44-0ubuntu0.18.04$End-Date: 2020-02-21  01:29:37

So, for some reason, MySQL was installed during the removal. Removed these packages and Maria became as it should.
I'll rephrase the question, what did I do wrong))? Why became MySQL?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Priluzkiy, 2020-02-21
@Bodryj

I suspect MariaDB | MySQL as a dependency for some packages. Therefore, when you removed MariaDB, the MySQL package got up automatically, as providing the same functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question