Error installing default-mysql-server on fresh ubuntu 18.04.2 install

Bug #1828878 reported by Michael Knichel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-defaults (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After installing 18.04.3 I tried
sudo apt install default-mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
  mailx tinyca
The following NEW packages will be installed:
  default-mysql-server mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,520 B/11.0 MB of archives.
After this operation, 94.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 default-mysql-se
rver all 1.0.4 [3,520 B]
Fetched 3,520 B in 0s (11.2 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mysql-server-core-5.7.
(Reading database ... 197697 files and directories currently installed.)
Preparing to unpack .../mysql-server-core-5.7_5.7.26-0ubuntu0.18.04.1_amd64.deb
...
Unpacking mysql-server-core-5.7 (5.7.26-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-server-5.7.
Preparing to unpack .../mysql-server-5.7_5.7.26-0ubuntu0.18.04.1_amd64.deb ...
grep: /etc/mysql/: No such file or directory
Unpacking mysql-server-5.7 (5.7.26-0ubuntu0.18.04.1) ...
Selecting previously unselected package default-mysql-server.
Preparing to unpack .../default-mysql-server_1.0.4_all.deb ...
Unpacking default-mysql-server (1.0.4) ...
Processing triggers for ureadahead (0.100.0-21) ...
Setting up mysql-server-core-5.7 (5.7.26-0ubuntu0.18.04.1) ...
Processing triggers for systemd (237-3ubuntu10.21) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up mysql-server-5.7 (5.7.26-0ubuntu0.18.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
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/' (Errcode: 2 - No such file or directory)
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: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of default-mysql-server:
 default-mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package default-mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.21) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                       Errors were encountered while processing:
 mysql-server-5.7
 default-mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: default-mysql-server 1.0.4
ProcVersionSignature: Ubuntu 4.15.0-48.51-generic 4.15.18
Uname: Linux 4.15.0-48-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon May 13 14:46:45 2019
InstallationDate: Installed on 2019-05-13 (0 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mysql-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michael Knichel (m-knichel) wrote :
Revision history for this message
Michael Knichel (m-knichel) wrote :

Sorry, meant 18.0.2...

Tom Reynolds (tomreyn)
summary: - Error installing default-mysql-server on fresh ubuntu 18.04.3 install
+ Error installing default-mysql-server on fresh ubuntu 18.04.2 install
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete.

Specifically, mysql-common provides /etc/mysql/conf.d, and it seems that you already had that installed before your terminal log begins, yet you've somehow ended up with /etc/mysql or its contents removed before you attempted to install default-mysql-server.

I have tried to reproduce this problem and it does not occur in a fresh 18.04 container. I don't see how the installation method or virtualization platform used would make a difference in this case.

If you can provide full steps to reproduce that can be reproduced by others, please provide them and then set the bug status back to New.

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

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

Changed in mysql-defaults (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.