package mysql-server failed to install/upgrade due to insufficient disk space in /var/lib/mysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
My tab is crashing again and again
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 5.7.26-
ProcVersionSign
Uname: Linux 4.15.0-45-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
AptOrdering:
mysql-
mysql-
NULL: ConfigurePending
Architecture: amd64
Date: Mon Jun 3 10:29:16 2019
DpkgTerminalLog:
Preparing to unpack .../mysql-
ERROR: There's not enough space in /var/lib/mysql/
dpkg: error processing archive /var/cache/
new mysql-server-5.7 package pre-installation script subprocess returned error exit status 1
DuplicateSignature:
package:
Preparing to unpack .../mysql-
ERROR: There's not enough space in /var/lib/mysql/
dpkg: error processing archive /var/cache/
new mysql-server-5.7 package pre-installation script subprocess returned error exit status 1
ErrorMessage: new mysql-server-5.7 package pre-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-09-03 (273 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.5, 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.6ubuntu0.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.26-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
summary: |
- package mysql-server-5.7 5.7.26-0ubuntu0.18.04.1 failed to - install/upgrade: new mysql-server-5.7 package pre-installation script - subprocess returned error exit status 1 + package mysql-server failed to install/upgrade due to insufficient disk + space in /var/lib/mysql |
Hi Shikha,
It looks like this installation failure was simply due to not enough disk space, looking at your Df.txt (run `df` on the console) you can see:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 3974044 0 3974044 0% /dev
tmpfs 800860 1996 798864 1% /run
/dev/sda2 22435288 21285844 0 100% /
tmpfs 4004296 35368 3968928 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4004296 0 4004296 0% /sys/fs/cgroup
Your root file system on /dev/sda2 is 100% full. Free up some space, and then try the mysql installation again. You'll probably run into other problems while you're out of space.
The Ubuntu Desktop Edition's minimum requirements is 25G, which you're a bit below. You may want to consider either using a larger disk / partition or perhaps using the Ubuntu Server Edition if you just need mysql and server applications, as it should fit inside a few gigabyes of disk space.