As I see my problem is similar to this one libc6 dependency mismatch in Debian 9.12 stretch. Please,advice a solution for my distribution
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc6-dbg : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed
libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed
libc6-i386 : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt install --fix-broken
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:
libsystemd0:i386 libudev1:i386
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libc6 libc6:i386
Suggested packages:
glibc-doc glibc-doc:i386 locales:i386
The following packages will be upgraded:
libc6 libc6:i386
2 upgraded, 0 newly installed, 0 to remove and 461 not upgraded.
5 not fully installed or removed.
Need to get 0 B/5 287 kB of archives.
After this operation, 2 048 B of additional disk space will be used.
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 ... 258230 files and directories currently installed.)
Preparing to unpack .../libc6_2.31-0ubuntu9.2_amd64.deb ...
De-configuring libc6:i386 (2.31-0ubuntu9.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temp
orarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-0ubuntu9.2_amd64.deb (--unpack):
new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Preparing to unpack .../libc6_2.31-0ubuntu9.2_i386.deb ...
De-configuring libc6:amd64 (2.31-0ubuntu9.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temp
orarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-0ubuntu9.2_i386.deb (--unpack):
new libc6:i386 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.31-0ubuntu9.2_amd64.deb
/var/cache/apt/archives/libc6_2.31-0ubuntu9.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)