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

Bug #2020264 reported by Nivedh Udayasing
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mariadb-10.6 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

idont understand this

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: mariadb-common 1:10.6.12-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.19.0-41.42~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-41-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sun May 21 18:32:56 2023
Dependencies: mysql-common 5.8+1.0.8
ErrorMessage: installed mariadb-common package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2023-02-15 (94 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.9
SourcePackage: mariadb-10.6
Title: package mariadb-common 1:10.6.12-0ubuntu0.22.04.1 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
Nivedh Udayasing (nivedhvark) wrote :
Revision history for this message
Faustin (fauust) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. 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.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures.

At a minimum, we need:

1. The specific steps or actions you took that caused you to encounter the problem.
2. The behavior you expected.
3. The behavior you actually encountered (in as much detail as possible).

Please also ensure that you include the release and flavour of Ubuntu that you are using.

Thank you!

Changed in mariadb-10.6 (Ubuntu):
status: New → Incomplete
Revision history for this message
subhash keshav (subhash88) wrote :

I am using ubuntu on parallels on macbook m2

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

The dpkg terminal log shows:

Unpacking mariadb-client-core-10.6 (1:10.6.12-0ubuntu0.22.04.1) ...
Setting up mysql-common (5.8+1.0.8) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-common (1:10.6.12-0ubuntu0.22.04.1) ...
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

Note '/etc/mysql/mariadb.cnf doesn't exist'

Seems you deleted of heavily customized folders or files in /etc/mysql which caused this. Steps to recover depends on what update-alternative steps you have currently in effect and what 'find /etc/mysql -ls' shows now as the file and directory structure.

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

[Expired for mariadb-10.6 (Ubuntu) because there has been no activity for 60 days.]

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