Score:0

Can't upgrade or install programs (Unmet dependencies Error(1)) Ubuntu 20.04.3 LTS

in flag

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)
Dennis Nolte avatar
us flag
looks like you have at least this problem: https://askubuntu.com/questions/136881/debconf-dbdriver-config-config-dat-is-locked-by-another-process-resource-t once you have fixed that try installing again, might work already.
djdomi avatar
za flag
shortfix (but maybe dangerous) check for running apt, dpkg processes, if not you may have to decide try reboot and run apt install which will mostly not work or delete the lock file and run then the apt install this time it may run
Rodion avatar
in flag
Don't find similarity. Output in my case: sudo fuser -v /var/cache/debconf/config.dat USER PID ACCESS COMMAND /var/cache/debconf/config.dat: root 7573 F.... frontend Why should I kill that. Please, explain
jp flag
The similarity is that you have another process ruining and holding the lock on `/var/cache/debconf/config.dat` which prevents you from running `apt` commands.
Rodion avatar
in flag
Thank you! That worker out
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.