Добрый день.
Подскажите, с чем может быть связана поблема. Пытаюсь установить mariadb с сайта
downloads.mariadb.org1. sudo apt-get install software-properties-common
2. sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
3. sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.realcompute.io/mariadb/repo/10.4/ubuntu bionic main'
После чего пытаюсь установить:
1. sudo apt update
2. sudo apt install mariadb-server
В процессе установки, на каком-то момент все прерывается:
Setting up mariadb-common (1:10.4.8+maria~bionic) ...
(Reading database ... 202092 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.4_1%3a10.4.8+maria~bionic_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
'systemctl stop mysql' returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.4_1%3a10.4.8+maria~bionic_amd64.deb (--unpack):
new mariadb-server-10.4 package pre-installation script subprocess returned error exit status 1
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack .../libmysqlclient20_5.7.27-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.27-0ubuntu0.18.04.1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../libdbd-mysql-perl_4.046-1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.046-1) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../libterm-readkey-perl_2.37-1build1_amd64.deb ...
Unpacking libterm-readkey-perl (2.37-1build1) ...
Selecting previously unselected package mariadb-server.
Preparing to unpack .../mariadb-server_1%3a10.4.8+maria~bionic_all.deb ...
Unpacking mariadb-server (1:10.4.8+maria~bionic) ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.4_1%3a10.4.8+maria~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
После чего, при поптыке или заново запустить установку, появляеться следующая информация
Reading package lists... Done
Building dependency tree
Reading state information... Done
mariadb-server is already the newest version (1:10.4.8+maria~bionic).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.4 (>= 1:10.4.8+maria~bionic) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
При попытке сделать
sudo apt --fix-broken install
появляется информация, которую я привел в самом начале:
(Reading database ... 202122 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.4_1%3a10.4.8+maria~bionic_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
'systemctl stop mysql' returned 5
...
Удалял репозиторий, удалял все что поставилось (sudo apt purge mariadb-*), повторял операцию - безрезультатно. Подскажите, как исправить баг?
Профиль ТС (пользователь yaleksandr89) по состоянию на 18/03/2020 на форуме более не существует. Модератором раздела принято решение закрыть тему.
--zg_nico