package mysql-server-8.0 8.0.27-0ubuntu0.20.04.1 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/
ectory)
mysqld: [ERROR] Stopped processing the 'includedir' directive in file /etc/mysql
/my.cnf at line 20.
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Please take a look at https:/
common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: erreur de traitement du paquet mysql-server-8.0 (--configure) :
installed mysql-server-8.0 package post-installation script subprocess returned
error exit status 1
dpkg: des problèmes de dépendances empêchent la configuration de mysql-server :
mysql-server dépend de mysql-server-8.0 ; cependant :
Le paquet mysql-server-8.0 n'est pas encore configuré.
dpkg: erreur de traitement du paquet mysql-server (--configure) :
problèmes de dépendances - laissé non configuré
Traitement des actions différées (« triggers ») pour systemd (245.4-4ubuntu3.13)
...
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur
consécutive à un échec précédent.
) pour man-db (2.9.1-1) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.31-0ubuntu9.2)
...
Des erreurs ont été rencontrées pendant l'exécution :
mysql-server-8.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.27-
ProcVersionSign
Uname: Linux 5.11.0-41-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Tue Dec 7 23:29:45 2021
DpkgHistoryLog:
Start-Date: 2021-12-07 23:29:24
Commandline: apt install mysql-server
Requested-By: perrier (1000)
Install: mecab-utils:amd64 (0.996-10build1, automatic), libevent-
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Logs.var.
Logs.var.
MySQLConf.
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.27-
UpgradeStatus: No upgrade log present (probably fresh install)
Thank you for taking the time to file a bug report.
The following excerpt seems to be the key to explaining what's going on:
ERROR: Unable to start MySQL server: conf.d/ ' (OS errno 2 - No such file or directory)
mysqld: Can't read dir of '/etc/mysql/
mysqld: [ERROR] Stopped processing the 'includedir' directive in file /etc/mysql/my.cnf at line 20.
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
It seems like the /etc/mysql/conf.d/ directory has been removed, which in turn makes MySQL to error out when trying to read files from it. I would recommend purging the package and installing it from scratch, but you can try recreating the directory by hand and see if solves the issue. Either way, this is very likely a local configuration issue.
Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.
However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, explain why you believe this is a bug in Ubuntu
rather than a problem specific to your system, and then change the bug
status back to "New".
For local configuration issues, you can find assistance here: www.ubuntu. com/support/ community
http://