** Description changed:

  [Impact]
  
  When a user has mariadb-server installed, then swaps to mysql-server,
  the apt installation crashes, leading to a bad state.
  
  This should be backported to 25.04 to prevent issues when migrating
  between databases.
  
  This issue is fixed by marking mariadb-common as a conflicting package.
  Without this, the package remains leading to the mysql-server postinst
  failing.
  
  [Test Plan]
  
  The fix can be confirmed by installing mariadb-server then installing
  mysql-server and making sure the command succeeds:
  
  # apt update
  # apt upgrade
  # apt install mariadb-server
  # apt install mysql-server
  
  [Where problems could occur]
  
  If problems were to occur, they would likely show up during apt install
  and apt upgrade while mysql is installed alongside mariadb having been
- installed in the past.
+ installed in the past. The addition of this conflict will also make
+ certain other packages incompatible with mysql, as they depend on
+ mariadb-common. This includes:
+ 
+ amarok, libatalk, libdbd-mariadb-perl, libdrogon1t64, neko, odbc-
+ mariadb, r-cran-rmariadb, stardict-tools
+ 
+ None of these are designed to work with mysql, and having them installed
+ at the same time may actually cause other issues as they expect a
+ mariadb backend, but they are currently co-installable with mysql in
+ theory, even if the crash that this fixes generally prevents that from
+ happening in plucky.
  
  [Other Info]
-  
- The crash does not happen with mysql-8.0 in Ubuntu, so this issue affects 
plucky specifically.
+ 
+ The crash does not happen with mysql-8.0 in Ubuntu, so this issue
+ affects plucky specifically.
  
  [Original Description]
  
  When attempting to install mysql-server while mariadb-server is
  currently installed, most mariadb packages will be removed automatically
  except mariadb-common, causing a crash in the postinst. If mariadb-
  common is removed manually beforehand, then the installation completes
  successfully. This is also an issue for mysql-8.0 on debian sid, but not
  oracular or earlier.
  
  ProblemType: Package
  DistroRelease: Ubuntu 25.04
  Package: mysql-server 8.4.5-0ubuntu0.1
  ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
  Uname: Linux 6.14.0-15-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudBuildName: server
  CloudID: multipass
  CloudName: multipass
  CloudPlatform: nocloud
  CloudSerial: 20250424
  CloudSubPlatform: config-disk (/dev/vdb)
  Date: Tue May 27 20:24:37 2025
  ErrorMessage: installed mysql-server package post-installation script 
subprocess returned error exit status 1
  Logs.var.log.daemon.log:
  
  Logs.var.log.mysql.error.log:
  
  MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
  MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
-  [mysqldump]
-  quick
-  quote-names
-  max_allowed_packet = 16M
+  [mysqldump]
+  quick
+  quote-names
+  max_allowed_packet = 16M
  MySQLConf.etc.mysql.my.cnf: my.cnf links to /etc/mysql/mariadb.cnf
  MySQLVarLibDirListing: ['ib_buffer_pool', 'mysql.ibd', 'ibdata1', 'auto.cnf', 
'undo_002', 'public_key.pem', 'mysql', 'ca.pem', '#ib_16384_0.dblwr', 
'server-key.pem', '#innodb_temp', 'server-cert.pem', '#ib_16384_1.dblwr', 
'client-key.pem', 'undo_001', 'mysql_upgrade_history', '#innodb_redo', 
'performance_schema', 'client-cert.pem', 'ca-key.pem', 'private_key.pem']
  ProcCmdline: BOOT_IMAGE=/vmlinuz-6.14.0-15-generic root=LABEL=cloudimg-rootfs 
ro console=tty1 console=ttyS0
  Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal, 3.13.3-1
  PythonDetails: N/A
  RelatedPackageVersions:
-  dpkg 1.22.18ubuntu2
-  apt 3.0.0
+  dpkg 1.22.18ubuntu2
+  apt 3.0.0
  SourcePackage: mysql-8.4
  Title: package mysql-server 8.4.5-0ubuntu0.1 failed to install/upgrade: 
installed mysql-server package post-installation script subprocess returned 
error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  mysql-server 8.4 install crashes when mariadb-common is still
  installed

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to