package mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal

Bug #1767186 reported by Skank Hunt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

There is 1 error.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.22-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.13.0-39.44~16.04.1-generic 4.13.16
Uname: Linux 4.13.0-39-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
Date: Thu Apr 26 22:19:37 2018
DpkgTerminalLog:
 Removing mysql-server (5.7.21-0ubuntu0.16.04.1) ...
 dpkg: error processing package mysql-server-5.7 (--purge):
  package is in a very bad inconsistent state; you should
  reinstall it before attempting a removal
DuplicateSignature:
 package:mysql-server-5.7:5.7.22-0ubuntu0.16.04.1
 Removing mysql-server (5.7.21-0ubuntu0.16.04.1) ...
 dpkg: error processing package mysql-server-5.7 (--purge):
  package is in a very bad inconsistent state; you should
ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
InstallationDate: Installed on 2018-02-22 (63 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
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
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['mysql', 'ibdata1', 'ibtmp1', 'debian-5.7.flag', 'mysql_upgrade_info', 'sys', 'zm', 'auto.cnf', 'performance_schema', 'ib_buffer_pool', 'ib_logfile1', 'ib_logfile0']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.13.0-39-generic root=UUID=99eb2d3e-0f7c-4bcf-90a0-7294516e31cb ro quiet splash
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.4
 apt 1.2.26
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Skank Hunt (skankhunt8) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
I can't find much more on your error in the logs than the error message.
Usually it is good to follow a guide like [1] (but adapted to your package being mysql-server-5.7) in such cases.

If that still fails you please report the full terminal output you got while doing so here.

Changed in mysql-5.7 (Ubuntu):
status: New → Incomplete
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mysql-5.7 (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.