config.dat is locked by another process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-server (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
ca-certificat
libgslcblas0 libgtk2.0-cil libjs-c3 libjs-chartjs libjs-d3 libjs-jquery-
libjs-
libmono-
libmono-
libphp-phpmailer libpython3-dev libpython3.6-dev librrd8 libtinyxml2.6.2v5 libyaml-cpp0.5v5 linux-headers-
linux-
mono-4.0-gac mono-gac mono-runtime mono-runtime-common mono-runtime-sgen php-common php-gd php-gmp php-ldap php-mbstring php-mysql php-pear php-php-gettext php-phpseclib php-snmp php-twig php-xml
php7.2-cli php7.2-common php7.2-gd php7.2-gmp php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-snmp php7.2-xml rrdtool shim snmp
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
mysql-server-5.7
Suggested packages:
mailx tinyca
The following packages will be upgraded:
mysql-server-5.7
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3.190 kB of archives.
After this operation, 48,1 kB disk space will be freed.
Do you want to continue? [Y/n] Y
debconf: DbDriver "config": /var/cache/
(Reading database ... 354086 files and directories currently installed.)
Preparing to unpack .../mysql-
debconf: DbDriver "config": /var/cache/
dpkg: warning: old mysql-server-5.7 package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
debconf: DbDriver "config": /var/cache/
dpkg: error processing archive /var/cache/
new mysql-server-5.7 package pre-removal script subprocess returned error exit status 1
debconf: DbDriver "config": /var/cache/
dpkg: error while cleaning up:
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Fixed with "fuser -vik /var/cache/ debconf/ config. dat" but apparently some seconds later it was already unlocked.
# apt --fix-broken install es-mono cli-common dbconfig-common dbconfig-mysql default- mysql-client default- mysql-server libapache2-mod-php libapache2- mod-php7. 2 libdbi1 libexpat1-dev libgdiplus libglib2.0-cil libgsl23 colorpicker libjs-jquery-cookie libjs-jquery- hotkeys libjs-jquery-jstree libjs-jquery- metadata libjs-jquery- tablesorter jquery- timepicker libjs-jquery-ui libjs-jquery- ui-theme- smoothness libjs-jquery- ui-theme- south-street libjs-jquery- ui-theme- ui-darkness libjs-jquery- ui-touch- punch libmono- addins- gui0.2- cil addins0. 2-cil libmono- cairo4. 0-cil libmono- corlib4. 5-cil libmono- i18n-west4. 0-cil libmono-i18n4.0-cil libmono- posix4. 0-cil libmono- security4. 0-cil libmono- sharpzip4. 84-cil system- configuration4. 0-cil libmono- system- core4.0- cil libmono- system- drawing4. 0-cil libmono- system- security4. 0-cil libmono- system- xml4.0- cil libmono- system4. 0-cil libopencolorio1v5 4.15.0- 13 linux-headers- 4.15.0- 13-generic linux-headers- 4.15.0- 15 headers- 4.15.0- 15-generic linux-image- 4.15.0- 13-generic linux-image- 4.15.0- 15-generic linux-image- extra-4. 15.0-13- generic linux-image- extra-4. 15.0-15- generic linux-signed- image-4. 15.0-15- generic server- 5.7_5.7. 22-0ubuntu18. 04.1_amd64. deb ... 0ubuntu18. 04.1) over (5.7.21-1ubuntu1) ... core-5. 7 (5.7.22- 0ubuntu18. 04.1) ... 0ubuntu18. 04.1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
ca-certificat
libgslcblas0 libgtk2.0-cil libjs-c3 libjs-chartjs libjs-d3 libjs-jquery-
libjs-
libmono-
libmono-
libphp-phpmailer libpython3-dev libpython3.6-dev librrd8 libtinyxml2.6.2v5 libyaml-cpp0.5v5 linux-headers-
linux-
mono-4.0-gac mono-gac mono-runtime mono-runtime-common mono-runtime-sgen php-common php-gd php-gmp php-ldap php-mbstring php-mysql php-pear php-php-gettext php-phpseclib php-snmp php-twig php-xml
php7.2-cli php7.2-common php7.2-gd php7.2-gmp php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-snmp php7.2-xml rrdtool shim snmp
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
mysql-server-5.7
Suggested packages:
mailx tinyca
The following packages will be upgraded:
mysql-server-5.7
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3.190 kB of archives.
After this operation, 48,1 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 354086 files and directories currently installed.)
Preparing to unpack .../mysql-
Unpacking mysql-server-5.7 (5.7.22-
Processing triggers for ureadahead (0.100.0-20) ...
Setting up mysql-server-
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up mysql-server-5.7 (5.7.22-
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
mysql.columns_priv OK
mysql....