package mysql-server-8.0 8.0.31-0ubuntu0.22.04.1 failed to install/upgrade: "Can't read dir of '/etc/mysql/conf.d/'"

Bug #2002828 reported by MASSOLIN Kevin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

dpkg: dependency problems prevent mysql-server from being configured

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: mysql-server-8.0 8.0.31-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.15.0-57.63-generic 5.15.74
Uname: Linux 5.15.0-57-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Jan 13 15:51:54 2023
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2023-01-09 (3 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
Logs.var.log.daemon.log:

Logs.var.log.mysql.error.log:
MySQLConf.etc.mysql.my.cnf: my.cnf links to /etc/mysql/mysql.cnf
MySQLVarLibDirListing: []
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.15.0-57-generic root=UUID=997a82bb-a573-4a36-b32f-3c5236ea7744 ro quiet splash
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.8
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.31-0ubuntu0.22.04.1 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

[DpkgTerminalLog]
/lib/mecab/dic/debian » (mecab-dictionary) en mode automatique
Paramétrage de mysql-server-8.0 (8.0.31-0ubuntu0.22.04.1) ...
update-alternatives: avertissement: l'alternative /etc/mysql/my.cnf.fallback (qui fait partie du groupe de liens my.cnf) n'a pas été trouvée ; suppression de la liste des alternatives
update-alternatives: avertissement: /etc/alternatives/my.cnf is dangling; it will be updated with best choice
update-alternatives: utilisation de « /etc/mysql/mysql.cnf » pour fournir « /etc/mysql/my.cnf » (my.cnf) en mode automatique
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
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!

Revision history for this message
MASSOLIN Kevin (gorilla-grodd) wrote :
Bryce Harrington (bryce)
description: updated
summary: package mysql-server-8.0 8.0.31-0ubuntu0.22.04.1 failed to
- install/upgrade: installed mysql-server-8.0 package post-installation
- script subprocess returned error exit status 1
+ install/upgrade: "Can't read dir of '/etc/mysql/conf.d/'"
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for taking the time to file a bug report.

From the logs attached to this bug:

ERROR: Unable to start MySQL server:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
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 might have been manually removed before attempting to install the MySQL package. Could you confirm if that was indeed the case, please?

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:
http://www.ubuntu.com/support/community

Changed in mysql-8.0 (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.