package mysql-server-5.7 5.7.22-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.22-
ProcVersionSign
Uname: Linux 4.4.0-127-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.16
AptOrdering:
nethogs: Install
mysql-server-5.7: Configure
mysql-server: Configure
nethogs: Configure
NULL: ConfigurePending
Architecture: amd64
Date: Thu Jun 14 12:33:46 2018
DpkgHistoryLog:
Start-Date: 2018-06-14 12:33:36
Commandline: apt-get install nethogs
Requested-By: django (1000)
Install: nethogs:amd64 (0.8.1-0.3)
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2018-04-05 (69 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.4ubuntu1.4
apt 1.2.26
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.22-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
On package setup from your log:
mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) while connecting to the MySQL server
This is usually going through a local socket and needs no Password.
But in your case that socket was not reachable.
I see int he logs that mysql was installed/removed plenty of times.
Could on one of those a config change have been made that breaks this.
If this is all fresh you should consider purging all of mysql to get rid of potentially broken configs. And then reinstall the packages cleanly.
That might resolve your issue.
If OTOH you have special background knowledge why on your system that local socket fails please just fix that and an install/upgrade will work.