Ошибка при переустановке mysql-сервера “postinst: строка 102: mysqld: команда, не найденная”

Я удалил mysql-сервер, потому что я настроил его неправильно. Когда я пытаюсь установить его теперь, я получаю эту ошибку:

matthew@matthewserver:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 
[387 kB]
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 559 kB in 1s (862 kB/s)
Reading package lists... Done
matthew@matthewserver:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.23-0ubuntu0.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.7 (5.7.23-0ubuntu0.18.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 102: mysqld: command not found
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.

dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я понятия не имею, что это означает. Как я иду об установке его?

1
задан 28 April 2019 в 19:06

1 ответ

sudo apt-get clean
sudo apt-get update
sudo dpkg -r mysql-client-5.7
sudo dpkg -r mysql-server-5.7
sudo dpkg -r libmysqlclient20:i386
sudo dpkg -r libmysqlclient20:amd64
sudo dpkg -r libmysqlclient18:amd64
sudo dpkg -r mysql-common
sudo dpkg -r mysql 
sudo apt-get install mysql mysql-client* mysql-server*
-1
ответ дан 27 October 2019 в 09:34

Другие вопросы по тегам:

Похожие вопросы: