package mariadb-common 1:10.11.11-0ubuntu0.24.04.2 failed to install/upgrade: installed mariadb-common package post-installation script subprocess returned error exit status 2

Bug #2107253 reported by Mohamed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mariadb (Ubuntu)
New
Undecided
Unassigned

Bug Description

package mariadb-common 1:10.11.11-0ubuntu0.24.04.2 failed to install/upgrade: installed mariadb-common package post-installation script subprocess returned error exit status 2

ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: mariadb-common 1:10.11.11-0ubuntu0.24.04.2
ProcVersionSignature: Ubuntu 6.11.0-21.21~24.04.1-generic 6.11.11
Uname: Linux 6.11.0-21-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.5
Architecture: amd64
CasperMD5CheckResult: fail
Date: Thu Apr 10 08:51:36 2025
Dependencies: mysql-common 5.8+1.1.0build1
DuplicateSignature:
 package:mariadb-common:1:10.11.11-0ubuntu0.24.04.2
 Setting up mariadb-common (1:10.11.11-0ubuntu0.24.04.2) ...
 update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
 dpkg: error processing package mariadb-common (--configure):
  installed mariadb-common package post-installation script subprocess returned error exit status 2
ErrorMessage: installed mariadb-common package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2024-12-07 (126 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.mariadb.cnf: Error: [Errno 2] No such file or directory: '/etc/mysql/mariadb.cnf'
PackageArchitecture: all
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-6.11.0-21-generic root=UUID=a6d8820f-51cc-4ebb-b570-7d1cd44a24ec ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 3.12.3-0ubuntu2
PythonDetails: /usr/bin/python3.12, Python 3.12.3, python-is-python3, 3.11.4-1
RelatedPackageVersions:
 dpkg 1.22.6ubuntu6.1
 apt 2.7.14build2
SourcePackage: mariadb
Title: package mariadb-common 1:10.11.11-0ubuntu0.24.04.2 failed to install/upgrade: installed mariadb-common package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.mysql.mariadb.cnf: [deleted]

Revision history for this message
Mohamed (mohamed010) wrote :
Revision history for this message
Otto Kekäläinen (otto) wrote :

This seems like a duplicate of https://bugs.launchpad.net/ubuntu/+source/mariadb/+bug/2101858

Was /etc/mysql/mariadb.cnf perhaps removed manually on this system?

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.