mysql-server-5.7 5.7.25 upgrade did not complete properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 18.04.1 LTS
set to run unattended upgrades
log shows there was an issue during the mysql-server 5.7.25 upgrade
mysql --version shows
mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper
sudo service mysql restart
seems to work
sudo dpkg --configure -a says
"This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade"
but then it hangs
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 5.7.25-
ProcVersionSign
Uname: Linux 4.15.0-43-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
AptOrdering: NULL: ConfigurePending
Architecture: amd64
Date: Fri Feb 22 17:02:20 2019
ErrorMessage: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-11-25 (89 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.04
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2.1
apt 1.6.6ubuntu0.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.25-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Stuck on this - tried a bunch of things up to purging mysql-server and mysql-server-5.7 packages. Reinstalling proceeded fine until the same blocking message:
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade
At this point the process hangs in the terminal until I stop it manually
dpkg -l | grep mysql-server-5.7 shows "iF" for the status flags
So now I'm really messed up because the problem blocks the reinstall of mysql-server. Any suggestions as to how to get out of this mess would be really appreciated.
-Pp