MySQL postinst failed because of third party mysql-common package

Bug #1931034 reported by himanshu kumar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

yes

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.25-0ubuntu0.20.04.1
ProcVersionSignature: Ubuntu 5.8.0-53.60~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-53-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.18
AptOrdering:
 teams:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun Jun 6 23:49:47 2021
DpkgHistoryLog:
 Start-Date: 2021-06-06 23:49:27
 Commandline: apt install teams
 Requested-By: himanshu (1000)
 Install: teams:amd64 (1.4.00.7556)
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 127
InstallationDate: Installed on 2021-03-01 (96 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLConf.etc.mysql.my.cnf: Error: [Errno 40] Too many levels of symbolic links: '/etc/mysql/my.cnf'
MySQLVarLibDirListing: ['#ib_16384_1.dblwr', 'binlog.000100', 'mysql.ibd', 'mysql_upgrade_info', 'binlog.000096', 'ib_logfile1', 'binlog.000104', 'binlog.000114', 'ibdata1', 'binlog.000111', 'debian-5.7.flag', 'binlog.000102', 'server-key.pem', 'performance_schema', 'binlog.000099', '#innodb_temp', 'binlog.000095', 'binlog.000117', 'private_key.pem', 'client-key.pem', 'binlog.000120', 'binlog.000098', 'binlog.000108', 'binlog.000119', 'binlog.000121', 'auto.cnf', 'ib_buffer_pool', 'binlog.000106', 'binlog.000112', '#ib_16384_0.dblwr', 'binlog.000122', 'binlog.000115', 'ca.pem', 'server-cert.pem', 'ca-key.pem', 'binlog.000103', 'client-cert.pem', 'binlog.000109', 'ib_logfile0', 'binlog.000105', 'sys', 'binlog.000118', 'binlog.000097', 'undo_002', 'public_key.pem', 'binlog.000101', 'binlog.index', 'binlog.000110', 'binlog.000107', 'binlog.000116', 'undo_001', 'binlog.000113', 'mysql']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.8.0-53-generic root=UUID=353888bc-5199-42ca-9677-efb86a6db58d ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.5
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.25-0ubuntu0.20.04.1 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.mysql.mysql.cnf: [modified]
mtime.conffile..etc.mysql.mysql.cnf: 2021-03-19T11:26:30.423880

Revision history for this message
himanshu kumar (himanshukumar-ce) wrote :
Revision history for this message
Robie Basak (racb) wrote :

From log:

Setting up mysql-server-8.0 (8.0.25-0ubuntu0.20.04.1) ...
/var/lib/dpkg/info/mysql-server-8.0.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory

Revision history for this message
Robie Basak (racb) wrote :

Thank you for your report.

This looks like a local configuration problem, rather than a bug in Ubuntu.

Specifically, you appear to have added a third party apt repository and installed a third party package from there (mysql-common 1:10.3.29+maria~xenial [origin: MariaDB]) which is the cause of your failure.

You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu.

If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, 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.

Changed in mysql-8.0 (Ubuntu):
status: New → Invalid
summary: - package mysql-server-8.0 8.0.25-0ubuntu0.20.04.1 failed to
- install/upgrade: installed mysql-server-8.0 package post-installation
- script subprocess returned error exit status 127
+ MySQL postinst failed because of third party mysql-common package
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.