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

Bug #1953553 reported by perrier
6
This bug affects 1 person
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/conf.d/' (OS errno 2 - No such file or dir
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://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: 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.
                                  Traitement des actions différées (« triggers »
) 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-0ubuntu0.20.04.1
ProcVersionSignature: Ubuntu 5.11.0-41.45~20.04.1-generic 5.11.22
Uname: Linux 5.11.0-41-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
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-core-2.1-7:amd64 (2.1.11-stable-1, automatic), mysql-server:amd64 (8.0.27-0ubuntu0.20.04.1), mysql-server-8.0:amd64 (8.0.27-0ubuntu0.20.04.1, automatic), libcgi-fast-perl:amd64 (1:2.15-1, automatic), libfcgi-perl:amd64 (0.79-1, automatic), libmecab2:amd64 (0.996-10build1, automatic), mecab-ipadic-utf8:amd64 (2.7.0-20070801+main-2.1, automatic), libcgi-pm-perl:amd64 (4.46-1, automatic), libaio1:amd64 (0.3.112-5, automatic), libevent-pthreads-2.1-7:amd64 (2.1.11-stable-1, automatic), libhtml-template-perl:amd64 (2.97-1, automatic), mecab-ipadic:amd64 (2.7.0-20070801+main-2.1, automatic), mysql-server-core-8.0:amd64 (8.0.27-0ubuntu0.20.04.1, automatic)
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Logs.var.log.daemon.log:

Logs.var.log.mysql.error.log:
MySQLConf.etc.mysql.my.cnf: Error: [Errno 40] Trop de niveaux de liens symboliques: '/etc/mysql/my.cnf'
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.11.0-41-generic root=UUID=44621d0f-7ef3-4774-a2d2-ee07c2f6fc4a ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.6
SourcePackage: mysql-8.0
Title: 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
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
perrier (mik66mik) wrote :
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

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

Changed in mysql-8.0 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mysql-8.0 (Ubuntu) because there has been no activity for 60 days.]

Changed in mysql-8.0 (Ubuntu):
status: Incomplete → Expired
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.