package mysql-server-5.7 5.7.24-0ubuntu0.18.04.1 failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
THIS WAS UPDATED TOGETHER:
Start-Date: 2018-11-13 08:19:50
Commandline: /usr/bin/
Remove: linux-modules-
End-Date: 2018-11-13 08:19:51
Start-Date: 2018-11-13 08:20:21
Commandline: /usr/bin/
Upgrade: distro-
End-Date: 2018-11-13 08:20:22
Start-Date: 2018-11-13 08:20:25
Commandline: /usr/bin/
Upgrade: firefox:amd64 (62.0.3+
End-Date: 2018-11-13 08:20:29
Start-Date: 2018-11-13 08:20:32
Commandline: /usr/bin/
Upgrade: firefox-
End-Date: 2018-11-13 08:20:33
Start-Date: 2018-11-13 08:20:35
Commandline: /usr/bin/
Upgrade: firefox-
End-Date: 2018-11-13 08:20:36
Start-Date: 2018-11-13 08:20:38
Commandline: /usr/bin/
Upgrade: gettext:amd64 (0.19.8.1-6, 0.19.8.
End-Date: 2018-11-13 08:20:40
Start-Date: 2018-11-13 08:20:42
Commandline: /usr/bin/
Upgrade: gettext-base:amd64 (0.19.8.1-6, 0.19.8.
End-Date: 2018-11-13 08:20:44
Start-Date: 2018-11-13 08:20:46
Commandline: /usr/bin/
Upgrade: gir1.2-nm-1.0:amd64 (1.10.6-2ubuntu1, 1.10.6-2ubuntu1.1)
End-Date: 2018-11-13 08:20:46
Start-Date: 2018-11-13 08:20:49
Commandline: /usr/bin/
Upgrade: git:amd64 (1:2.17.
End-Date: 2018-11-13 08:20:50
Start-Date: 2018-11-13 08:20:54
Commandline: /usr/bin/
Upgrade: git-man:amd64 (1:2.17.
End-Date: 2018-11-13 08:20:56
Start-Date: 2018-11-13 08:20:58
Commandline: /usr/bin/
Upgrade: libcurl3-
End-Date: 2018-11-13 08:20:59
Start-Date: 2018-11-13 08:21:02
Commandline: /usr/bin/
Upgrade: libkpathsea6:amd64 (2017.20170613.
End-Date: 2018-11-13 08:21:03
Start-Date: 2018-11-13 08:21:06
Commandline: /usr/bin/
Upgrade: libmad0:amd64 (0.15.1b-8ubuntu1, 0.15.1b-
End-Date: 2018-11-13 08:21:07
Start-Date: 2018-11-13 08:21:09
Commandline: /usr/bin/
Upgrade: libnm0:amd64 (1.10.6-2ubuntu1, 1.10.6-2ubuntu1.1)
End-Date: 2018-11-13 08:21:10
Start-Date: 2018-11-13 08:21:13
Commandline: /usr/bin/
Upgrade: libnss-
End-Date: 2018-11-13 08:21:14
Start-Date: 2018-11-13 08:21:16
Commandline: /usr/bin/
Upgrade: libsnmp-base:amd64 (5.7.3+
End-Date: 2018-11-13 08:21:17
Start-Date: 2018-11-13 08:21:19
Commandline: /usr/bin/
Upgrade: libsnmp30:amd64 (5.7.3+
End-Date: 2018-11-13 08:21:20
Start-Date: 2018-11-13 08:21:23
Commandline: /usr/bin/
Upgrade: libssh-4:amd64 (0.8.0~
End-Date: 2018-11-13 08:21:23
Start-Date: 2018-11-13 08:21:26
Commandline: /usr/bin/
Upgrade: libssh-
End-Date: 2018-11-13 08:21:26
Start-Date: 2018-11-13 08:21:29
Commandline: /usr/bin/
Upgrade: mysql-client:amd64 (5.7.23-
End-Date: 2018-11-13 08:21:29
Start-Date: 2018-11-13 08:21:32
Commandline: /usr/bin/
Upgrade: mysql-client-
End-Date: 2018-11-13 08:21:33
Start-Date: 2018-11-13 08:21:36
Commandline: /usr/bin/
Upgrade: mysql-client-
End-Date: 2018-11-13 08:21:37
Start-Date: 2018-11-13 08:21:40
Commandline: /usr/bin/
Upgrade: mysql-server:amd64 (5.7.23-
End-Date: 2018-11-13 08:21:40
Start-Date: 2018-11-13 08:21:43
Commandline: /usr/bin/
Upgrade: network-
End-Date: 2018-11-13 08:21:47
Start-Date: 2018-11-13 08:21:49
Commandline: /usr/bin/
Upgrade: openjdk-
End-Date: 2018-11-13 08:21:52
Start-Date: 2018-11-13 08:21:55
Commandline: /usr/bin/
Upgrade: openssh-
End-Date: 2018-11-13 08:21:56
Start-Date: 2018-11-13 08:21:59
Commandline: /usr/bin/
Upgrade: ppp:amd64 (2.4.7-2+2ubuntu1, 2.4.7-2+2ubuntu1.1)
End-Date: 2018-11-13 08:22:02
Start-Date: 2018-11-13 08:22:04
Commandline: /usr/bin/
Upgrade: python3-
End-Date: 2018-11-13 08:22:05
Start-Date: 2018-11-13 08:22:07
Commandline: /usr/bin/
Upgrade: ruby2.5:amd64 (2.5.1-1ubuntu1, 2.5.1-1ubuntu1.1)
End-Date: 2018-11-13 08:22:09
Start-Date: 2018-11-13 08:22:11
Commandline: /usr/bin/
Upgrade: ruby2.5-doc:amd64 (2.5.1-1ubuntu1, 2.5.1-1ubuntu1.1)
End-Date: 2018-11-13 08:22:13
Start-Date: 2018-11-13 08:22:16
Commandline: /usr/bin/
Upgrade: systemd-sysv:amd64 (237-3ubuntu10.3, 237-3ubuntu10.6)
End-Date: 2018-11-13 08:22:18
Start-Date: 2018-11-13 08:22:20
Commandline: /usr/bin/
Upgrade: thunderbird-
End-Date: 2018-11-13 08:22:20
Start-Date: 2018-11-13 08:22:23
Commandline: /usr/bin/
Upgrade: tzdata:amd64 (2018e-
End-Date: 2018-11-13 08:22:24
Start-Date: 2018-11-13 08:22:26
Commandline: /usr/bin/
Upgrade: xserver-
End-Date: 2018-11-13 08:22:27
Start-Date: 2018-11-13 08:22:30
Commandline: /usr/bin/
Upgrade: libmysqlclient-
End-Date: 2018-11-13 08:22:32
Start-Date: 2018-11-13 08:22:34
Commandline: /usr/bin/
Upgrade: ruby2.5-dev:amd64 (2.5.1-1ubuntu1, 2.5.1-1ubuntu1.1), libruby2.5:amd64 (2.5.1-1ubuntu1, 2.5.1-1ubuntu1.1)
End-Date: 2018-11-13 08:22:35
Start-Date: 2018-11-13 08:22:38
Commandline: /usr/bin/
Upgrade: udev:amd64 (237-3ubuntu10.3, 237-3ubuntu10.6), libudev1:amd64 (237-3ubuntu10.3, 237-3ubuntu10.6)
End-Date: 2018-11-13 08:22:53
Start-Date: 2018-11-13 08:22:56
Commandline: /usr/bin/
Upgrade: libxkbcommon-
End-Date: 2018-11-13 08:22:56
Start-Date: 2018-11-13 08:22:59
Commandline: /usr/bin/
Upgrade: network-
End-Date: 2018-11-13 08:22:59
Start-Date: 2018-11-13 08:23:02
Commandline: /usr/bin/
Upgrade: xserver-
End-Date: 2018-11-13 08:23:03
Start-Date: 2018-11-13 08:23:06
Commandline: /usr/bin/
Upgrade: xserver-
End-Date: 2018-11-13 08:23:07
Start-Date: 2018-11-13 08:23:10
Commandline: /usr/bin/
Upgrade: xserver-
End-Date: 2018-11-13 08:23:11
Start-Date: 2018-11-13 08:23:14
Commandline: /usr/bin/
Upgrade: xwayland:amd64 (2:1.19.6-1ubuntu4, 2:1.19.
End-Date: 2018-11-13 08:23:14
Start-Date: 2018-11-13 08:23:17
Commandline: /usr/bin/
Upgrade: libcurl4:amd64 (7.58.0-2ubuntu3.3, 7.58.0-2ubuntu3.5), libcurl4-
End-Date: 2018-11-13 08:23:18
Start-Date: 2018-11-13 08:23:21
Commandline: /usr/bin/
Upgrade: mysql-server-
Start-Date: 2018-11-13 16:13:42
Commandline: apt install linuxbrew-wrapper
Requested-By: opinya (1000)
Install: linuxbrew-
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2018-11-13 16:15:26
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 5.7.24-
ProcVersionSign
Uname: Linux 4.15.0-36-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.4
AptOrdering:
python-
python-
linuxbrew-
NULL: ConfigurePending
Architecture: amd64
Date: Tue Nov 13 16:15:26 2018
ErrorMessage: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-09-03 (71 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.6, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.3ubuntu0.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.24-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Hi leyb,
Looking in the logs, mysql is failing because it can't obtain a lockfile:
2018-11- 13T14:17: 06.265515Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11 13T14:17: 06.265584Z 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files. 13T14:17: 06.265618Z 0 [Note] InnoDB: Unable to open the first data file 13T14:17: 06.265652Z 0 [ERROR] InnoDB: Operating system error number 11 in a file operation. 13T14:17: 06.265673Z 0 [ERROR] InnoDB: Error number 11 means 'Resource temporarily unavailable' 13T14:17: 06.265687Z 0 [Note] InnoDB: Some operating system error numbers are described at http:// dev.mysql. com/doc/ refman/ 5.7/en/ operating- system- error-codes. html 13T14:17: 06.265701Z 0 [ERROR] InnoDB: Cannot open datafile './ibdata1' 13T14:17: 06.265738Z 0 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_ data_file_ path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data! 13T14:17: 06.265753Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Cannot open a file
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
Please make sure there aren't other instances accessing that file, and that its permissions are correct. Another cause could be an unclean shutdown.