config.dat is locked by another process

Bug #1768356 reported by Bump
6
This bug affects 1 person
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-certificates-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
  libgslcblas0 libgtk2.0-cil libjs-c3 libjs-chartjs libjs-d3 libjs-jquery-colorpicker libjs-jquery-cookie libjs-jquery-hotkeys libjs-jquery-jstree libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-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
  libmono-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
  libmono-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
  libphp-phpmailer libpython3-dev libpython3.6-dev librrd8 libtinyxml2.6.2v5 libyaml-cpp0.5v5 linux-headers-4.15.0-13 linux-headers-4.15.0-13-generic linux-headers-4.15.0-15
  linux-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
  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/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 354086 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.22-0ubuntu18.04.1_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
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/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.22-0ubuntu18.04.1_amd64.deb (--unpack):
 new mysql-server-5.7 package pre-removal script subprocess returned error exit status 1
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
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/apt/archives/mysql-server-5.7_5.7.22-0ubuntu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Bump (bump55) wrote :
Download full text (4.9 KiB)

Fixed with "fuser -vik /var/cache/debconf/config.dat" but apparently some seconds later it was already unlocked.

# 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-certificates-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
  libgslcblas0 libgtk2.0-cil libjs-c3 libjs-chartjs libjs-d3 libjs-jquery-colorpicker libjs-jquery-cookie libjs-jquery-hotkeys libjs-jquery-jstree libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-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
  libmono-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
  libmono-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
  libphp-phpmailer libpython3-dev libpython3.6-dev librrd8 libtinyxml2.6.2v5 libyaml-cpp0.5v5 linux-headers-4.15.0-13 linux-headers-4.15.0-13-generic linux-headers-4.15.0-15
  linux-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
  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-server-5.7_5.7.22-0ubuntu18.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.22-0ubuntu18.04.1) over (5.7.21-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up mysql-server-core-5.7 (5.7.22-0ubuntu18.04.1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up mysql-server-5.7 (5.7.22-0ubuntu18.04.1) ...
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
mysql.columns_priv OK
mysql....

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.