MySQL Forums
Forum List  »  Install & Repo

Failed Install for MySQL 8.0 on Ubuntu 18.04
Posted by: Anthony Petosa
Date: August 10, 2018 04:46PM

I have an Ubuntu 18.04 virtual machine running on VMWare Workstation Player v14.1.2. After following the instructions in "A Quick Guide to Using the MySQL APT Repository", beginning with the section entitled "Installing MySQL with APT" (see: https://downloads.mysql.com/docs/mysql-apt-repo-quick-guide-en.pdf), I keep getting the following errors. These errors occur despite which security option I select after assigned a 'root' level password.

=============================================================================
Setting up mysql-community-server (8.0.12-1ubuntu18.04) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
dpkg: error processing package mysql-community-server (--configure):
installed mysql-community-server package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-community-server (= 8.0.12-1ubuntu18.04); however:
Package mysql-community-server is not configured yet.

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

Regarding the following:

update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)

I assume the first line uses '/etc/mysql/mysql.cnf' over '/etc/mysql/my.cnf', since the former is set up as a SimLink.

Not being able to read the '/etc/mysql/conf.d/' directory is strange, because the directory is created while the MySQL process is running.

This problem has been blocking my work for the last three days, and, despite my exhaustive search to resolve it, I hit a roadblock.

I would appreciate this community's recommendations on resolving this issue. Thank you.

Options: ReplyQuote


Subject
Written By
Posted
Failed Install for MySQL 8.0 on Ubuntu 18.04
August 10, 2018 04:46PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.