package mariadb-server-10.6 1:10.6.7-2ubuntu1 failed to install/upgrade: new mariadb-server-10.6 package pre-installation script subprocess returned error exit status 1

Bug #1970671 reported by amirhossein
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
mariadb-10.6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

-

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: mariadb-server-10.6 1:10.6.7-2ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
Date: Thu Apr 28 01:46:03 2022
ErrorMessage: new mariadb-server-10.6 package pre-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-04-27 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
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
MySQLVarLibDirListing: ['ibtmp1', 'mysql_upgrade_info', 'debian-10.6.flag', 'mysql', 'ddl_recovery.log', 'performance_schema', 'ib_logfile0', 'ibdata1', 'ib_buffer_pool', 'aria_log_control', 'aria_log.00000001', 'multi-master.info', 'sys', 'phpmyadmin']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.15.0-27-generic root=UUID=eb87e041-7767-4643-b440-ddb6016c959f ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2
 apt 2.4.5
SourcePackage: mariadb-10.6
Title: package mariadb-server-10.6 1:10.6.7-2ubuntu1 failed to install/upgrade: new mariadb-server-10.6 package pre-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
amirhossein (amirhossein-ceh) wrote :
Revision history for this message
Daniel Black (daniel-black) wrote :

from DpkgTerminalLog.txt:

Preparing to unpack .../00-mariadb-server-10.6_1%3a10.6.7-2ubuntu1_amd64.deb ...
/var/lib/mysql: found previous version 8.0

This is mariadb refusing to install over MySQL-8.0. It can't auto-upgrade from MySQL-8.0 so it gracefully fails rather than destroying your data.

Revision history for this message
Faustin (fauust) wrote :

Daniel,
so, my understanding is that this can not be considered as bug, any reason you did not close it accordingly?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mariadb-10.6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Black (daniel-black) wrote :

Making invalid as suggested. You cannot install MariaDB over an existing MySQL-8.0 installation, purge /var/lib/mysql if the data here is no longer relevant and the install will be possible.

Changed in mariadb-10.6 (Ubuntu):
status: Confirmed → Invalid
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.