Error: broken count >0

Asked by Salman Ullah Siddiqui on 2020-07-25

i have problem in updating the package manage i have disabled all the repositories. I have tried all the following commands
sudo apt --fix-broken install
apt --fix-broken install
sudo apt-get dist-upgrade
sudo dpkg --configure -a
sudo apt install -f

even than i am having the same issue

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update Edit question
Assignee:
No assignee Edit question
Solved by:
Salman Ullah Siddiqui
Solved:
2020-07-26
Last query:
2020-07-26
Last reply:
2020-07-25
Manfred Hampl (m-hampl) said : #1

Please copy/paste the output of the following commands into this question document that we can see and give advice:

uname -a
lsb_release -crid
sudo apt update
sudo dpkg --audit
sudo dpkg --configure -a
sudo apt install -f

$ uname -a
Linux salmansiddiqui-Latitude-E5440 5.3.0-61-generic #55~18.04.1-Ubuntu SMP Mon Jun 22 16:40:20 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
$ sudo apt update
[sudo] password for salmansiddiqui:
Hit:1 http://sa.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://sa.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://sa.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:5 http://sa.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:6 http://sa.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [279 kB]
Get:7 http://sa.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [456 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [46.0 kB]
Get:9 http://sa.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:10 http://sa.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [49.2 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Fetched 1,391 kB in 2s (604 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
89 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 ethereumwallet
 gconf-service GNOME configuration database system (D-Bus service)
 gconf-service-backend GNOME configuration database system (D-Bus service)
 gconf2 GNOME configuration database system (support tools)
 libc6-dbg:amd64 GNU C Library: detached debugging symbols
 libc6-dev:amd64 GNU C Library: Development Libraries and Header Files
 libgconf-2-4:amd64 GNOME configuration database system (shared libraries)

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 gconf2-common GNOME configuration database system (common files)
 xserver-xorg-legacy-hwe-18.04 setuid root Xorg server wrapper

The following packages have been triggered, but the trigger processing
has not yet been done. Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 libc-bin GNU C Library: Binaries
$ sudo dpkg --configure -a
Setting up gconf2-common (3.2.6-4ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package gconf2-common (--configure):
 installed gconf2-common package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libc6-dbg:amd64:
 libc6-dbg:amd64 depends on libc6 (= 2.27-3ubuntu1.2); however:
  Version of libc6:amd64 on system is 2.27-3ubuntu1.

dpkg: error processing package libc6-dbg:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up xserver-xorg-legacy-hwe-18.04 (2:1.20.8-2ubuntu2.1~18.04.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package xserver-xorg-legacy-hwe-18.04 (--configure):
 installed xserver-xorg-legacy-hwe-18.04 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libgconf-2-4:amd64:
 libgconf-2-4:amd64 depends on gconf2-common (= 3.2.6-4ubuntu1); however:
  Package gconf2-common is not configured yet.

dpkg: error processing package libgconf-2-4:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:amd64:
 libc6-dev:amd64 depends on libc6 (= 2.27-3ubuntu1.2); however:
  Version of libc6:amd64 on system is 2.27-3ubuntu1.

dpkg: error processing package libc6-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gconf-service-backend:
 gconf-service-backend depends on libgconf-2-4 (= 3.2.6-4ubuntu1); however:
  Package libgconf-2-4:amd64 is not configured yet.
 gconf-service-backend depends on gconf2-common (= 3.2.6-4ubuntu1); however:
  Package gconf2-common is not configured yet.

dpkg: error processing package gconf-service-backend (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gconf2:
 gconf2 depends on libgconf-2-4 (>= 3.2.6-4ubuntu1); however:
  Package libgconf-2-4:amd64 is not configured yet.
 gconf2 depends on gconf-service-backend (= 3.2.6-4ubuntu1); however:
  Package gconf-service-backend is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gconf-service:
 gconf-service depends on gconf-service-backend (= 3.2.6-4ubuntu1); however:
  Package gconf-service-backend is not configured yet.

dpkg: error processing package gconf-service (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ethereumwallet:
 ethereumwallet depends on gconf2; however:
  Package gconf2 is not configured yet.
 ethereumwallet depends on gconf-service; however:
  Package gconf-service is not configured yet.

dpkg: error processing package ethereumwallet (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
 gconf2-common
 libc6-dbg:amd64
 xserver-xorg-legacy-hwe-18.04
 libgconf-2-4:amd64
 libc6-dev:amd64
 gconf-service-backend
 gconf2
 gconf-service
 ethereumwallet
$ sudo apt install -f
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:
  libfwup1 libwayland-egl1-mesa
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 88 not upgraded.
9 not fully installed or removed.
Need to get 0 B/2,827 kB of archives.
After this operation, 0 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 ... 194061 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1.2_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.2_amd64.deb (--unpack):
 new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-3ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Manfred Hampl (m-hampl) said : #3

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

Ubuntu's package management system makes sure that only one package installer program can run at the same time to prevent concurrent update.
Apparently there is a stalled software installation process running in the background that now prevents all further installation attempts.

Try

sudo fuser -v -k /var/cache/debconf/config.dat
sudo dpkg --configure -a
sudo apt install -f

and report the results.

its seems the issue is resolved thanks

thanks