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

Bug #1762648 reported by Daniel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mariadb-10.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Error occurred on command:

    sudo apt install mariadb-server

This is description:

```
Setting up mysql-common (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-common (10.0.34-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
dpkg: error processing package mariadb-common (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 mariadb-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

I had problems with well known bug:

> https://askubuntu.com/questions/760724/16-04-upgrade-broke-mysql-server

I was trying to remove from system everything connected with mysql and install it again.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mariadb-common 10.0.34-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.13.0-38.43~16.04.1-generic 4.13.16
Uname: Linux 4.13.0-38-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
Date: Tue Apr 10 09:34:20 2018
Dependencies: mysql-common 5.7.21-0ubuntu0.16.04.1
DuplicateSignature:
 package:mariadb-common:10.0.34-0ubuntu0.16.04.1
 Setting up mariadb-common (10.0.34-0ubuntu0.16.04.1) ...
 update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
 dpkg: error processing package mariadb-common (--configure):
  subprocess installed post-installation script returned error exit status 2
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2015-08-30 (953 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.4
 apt 1.2.26
SourcePackage: mariadb-10.0
Title: package mariadb-common 10.0.34-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script 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
Daniel (gustaw-daniel) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Faustin (fauust) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1676284, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.