package mariadb-common 10.0.29-0ubuntu0.16.04.1 failed to install/upgrade: podproces zainstalowany skrypt post-installation zwrócił kod błędu 2

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

Bug Description

I installed mariadb, next removed it and installed mysql, next I removed mysql by commands:

```
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mariadb-server
```

and then error occurred.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mariadb-common 10.0.29-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-79.100-generic 4.4.67
Uname: Linux 4.4.0-79-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Sat Jun 17 22:55:50 2017
Dependencies: mysql-common 5.7.18-0ubuntu0.16.04.1
ErrorMessage: podproces zainstalowany skrypt post-installation zwrócił kod błędu 2
InstallationDate: Installed on 2015-08-30 (657 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: mariadb-10.0
Title: package mariadb-common 10.0.29-0ubuntu0.16.04.1 failed to install/upgrade: podproces zainstalowany skrypt post-installation zwrócił kod błędu 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 :
Revision history for this message
Daniel (gustaw-daniel) wrote :

I fixed it by:

```
sudo rm -rf /etc/mysq
sudo rm -rf /var/lib/mysql
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mariadb-server
```

Revision history for this message
Faustin (fauust) wrote :

Hi Daniel, thank you for taking time to report this and for providing a solution.

Please be carreful, /var/lib/mysql contains the DB data and should never be removed unless you know what you do.

More information on a workaround can be found there:
https://jira.mariadb.org/browse/MDEV-11170

Changed in mariadb-10.0 (Ubuntu):
status: New → Fix Committed
Otto Kekäläinen (otto)
Changed in mariadb-10.0 (Ubuntu):
status: Fix Committed → 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.