Answer the question
In order to leave comments, you need to log in
How to uninstall mariadb?
Installed linux mint to deploy a web server for my needs. At first I installed mysql, but then I decided to install mariadb and, it seems, did not completely remove mysql. By the way, I can not install packages, writes
[email protected]:/$ sudo apt-get dist-upgrade
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Вы можете запустить «apt --fix-broken install» для исправления этих ошибок.
Следующие пакеты имеют неудовлетворённые зависимости:
mariadb-client : Зависит: mariadb-client-10.3 (>= 1:10.3.23+maria~bionic) но 1:10.3.22-1ubuntu1 уже установлен
mariadb-server : Зависит: mariadb-server-10.3 (>= 1:10.3.23+maria~bionic) но 1:10.3.22-1ubuntu1 уже установлен
mariadb-server-10.3 : Конфликтует: mysql-server-core-5.5
Конфликтует: mysql-server-core-5.6
Конфликтует: mysql-server-core-5.7
mariadb-server-core-10.3 : Ломает: mariadb-client-10.3 (< 1:10.3.23+maria~bionic) но 1:10.3.22-1ubuntu1 уже установлен
Ломает: mariadb-server-10.3 (< 1:10.3.23+maria~bionic) но 1:10.3.22-1ubuntu1 уже установлен
E: Неудовлетворённые зависимости. Попытайтесь выполнить «apt --fix-broken install», не указывая имени пакета (или указав решение).
[email protected]:/$ mysql --version
mysql Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Answer the question
In order to leave comments, you need to log in
Use sudo apt-get purge and then sudo apt-get autoremove to remove dependencies
if you answer the question as it is asked, then
aptitude remove mariadb-server mariadb-client
with the default settings it will remove those packages that apt-get swore at and automatically installed packages.
purge should be done only consciously, it differs from the usual remove in that all configs are deleted (if you have a task to upgrade to a newer version, then this may not be what you need).
if you "read between the lines", then the ultimate goal is not to remove packages, but to resolve dependencies.
you can try using aptitude, it has a slightly different dependency resolution algorithm + there is an interactive mode.
just run aptitude, the bottom line will show you a hotkey hint.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question