[Bug 1914636] Re: package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1

2021-02-04 Thread Muhammad Naufal Hilmy Makarim
-
Fixing method:
Check if /etc/mysql directory exist. If it exist, then check if 
/etc/mysql/conf.d/ exist. It it not exist, then check if 
/etc/mysql/mysql.conf.d exist. If it exist then run the command below.
$ sudo ln -s /etc/mysql/mysql.conf.d /etc/mysql/conf.d
That command create symbolic link to provide compatibility. After that, run 
command below.
$ sudo apt-get --fix-broken install

That's it ^_^

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1914636

Title:
  package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 failed to
  install/upgrade: installed mysql-server-8.0 package post-installation
  script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1914636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1914636] [NEW] package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1

2021-02-04 Thread Muhammad Naufal Hilmy Makarim
Public bug reported:

$ sudo apt purge mysql-server
$ sudo rm -rf /etc/mysql
$ dpkg -l | grep mysql
result:
ii  libmysqlclient21:amd64 8.0.23-0ubuntu0.20.04.1  
   amd64MySQL database client library
ii  mysql-common   5.8+1.0.5ubuntu2 
   all  MySQL database common files, e.g. /etc/mysql/my.cnf

sudo apt-get install mysql-server
result:
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following additional packages will be installed:
  libaio1 libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-7
  libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl libmecab2
  mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0
  mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0
Suggested packages:
  libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
  libaio1 libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-7
  libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl libmecab2
  mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0
  mysql-client-core-8.0 mysql-server mysql-server-8.0 mysql-server-core-8.0
0 upgraded, 16 newly installed, 0 to remove and 2 not upgraded.
Need to get 30,6 MB/30,6 MB of archives.
After this operation, 249 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 
mysql-client-core-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [4.215 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 
mysql-client-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [22,0 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu focal/main amd64 libaio1 amd64 
0.3.112-5 [7.184 B]
Get:4 http://id.archive.ubuntu.com/ubuntu focal/main amd64 libevent-core-2.1-7 
amd64 2.1.11-stable-1 [89,1 kB]
Get:5 http://id.archive.ubuntu.com/ubuntu focal/main amd64 
libevent-pthreads-2.1-7 amd64 2.1.11-stable-1 [7.372 B]
Get:6 http://id.archive.ubuntu.com/ubuntu focal/main amd64 libmecab2 amd64 
0.996-10build1 [233 kB]
Get:7 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 
mysql-server-core-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [17,7 MB]
Get:8 http://id.archive.ubuntu.com/ubuntu focal-updates/main amd64 
mysql-server-8.0 amd64 8.0.23-0ubuntu0.20.04.1 [1.275 kB]
Get:9 http://id.archive.ubuntu.com/ubuntu focal/main amd64 libcgi-pm-perl all 
4.46-1 [186 kB]
Get:10 http://id.archive.ubuntu.com/ubuntu focal/main amd64 libfcgi-perl amd64 
0.79-1 [33,1 kB]
Get:11 http://id.archive.ubuntu.com/ubuntu focal/main amd64 libcgi-fast-perl 
all 1:2.15-1 [10,5 kB]
Get:12 http://id.archive.ubuntu.com/ubuntu focal/main amd64 
libhtml-template-perl all 2.97-1 [59,0 kB]
Get:13 http://id.archive.ubuntu.com/ubuntu focal/main amd64 mecab-utils amd64 
0.996-10build1 [4.912 B]
Get:14 http://id.archive.ubuntu.com/ubuntu focal/main amd64 mecab-ipadic all 
2.7.0-20070801+main-2.1 [6.714 kB]
Get:15 http://id.archive.ubuntu.com/ubuntu focal/main amd64 mecab-ipadic-utf8 
all 2.7.0-20070801+main-2.1 [4.380 B]
Fetched 30,6 MB in 2min 11s (233 kB/s) 
Preconfiguring packages ...
Selecting previously unselected package mysql-client-core-8.0.
(Reading database ... 171059 files and directories currently installed.)
Preparing to unpack 
.../00-mysql-client-core-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-client-core-8.0 (8.0.23-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-client-8.0.
Preparing to unpack .../01-mysql-client-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb 
...
Unpacking mysql-client-8.0 (8.0.23-0ubuntu0.20.04.1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../02-libaio1_0.3.112-5_amd64.deb ...
Unpacking libaio1:amd64 (0.3.112-5) ...
Selecting previously unselected package libevent-core-2.1-7:amd64.
Preparing to unpack .../03-libevent-core-2.1-7_2.1.11-stable-1_amd64.deb ...
Unpacking libevent-core-2.1-7:amd64 (2.1.11-stable-1) ...
Selecting previously unselected package libevent-pthreads-2.1-7:amd64.
Preparing to unpack .../04-libevent-pthreads-2.1-7_2.1.11-stable-1_amd64.deb ...
Unpacking libevent-pthreads-2.1-7:amd64 (2.1.11-stable-1) ...
Selecting previously unselected package libmecab2:amd64.
Preparing to unpack .../05-libmecab2_0.996-10build1_amd64.deb ...
Unpacking libmecab2:amd64 (0.996-10build1) ...
Selecting previously unselected package mysql-server-core-8.0.
Preparing to unpack 
.../06-mysql-server-core-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-server-core-8.0 (8.0.23-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-server-8.0.
Preparing to unpack .../07-mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb 
...
grep: /etc/mysql/: No such file or directory
Unpacking mysql-server-8.0 (8.0.23-0ubuntu0.20.04.1) ...
Selecting previously unselected package libcgi-pm-perl.
Preparing to unpack .../08-libcgi-pm-perl_4.46-1_all.deb ...
Unpacking