title: I can't run apt-get commands. apt --fix-broken install doesn't work. The following packages have unmet dependencies libc6-dbg and libc6-dev
body: <p>I'm new here</p>
  <p>I have Ubuntu 18.04 LTS</p>
  <p>When I run <code>sudo apt-get upgrade</code></p>
  <pre><code>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.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
   libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
  E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
  </code></pre>
  <p>Then I run <code>sudo apt --fix-broken install</code></p>
  <pre><code>Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Correcting dependencies... Done
  The following package was automatically installed and is no longer required:
    libsss-nss-idmap0
  Use 'sudo apt autoremove' to remove it.
  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 72 not upgraded.
  2 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 &quot;config&quot;: /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
  dpkg: warning: files list file for package 'linux-image-5.3.0-53-generic' missing; assuming package has no files currently installed
  (Reading database ... 214594 files and directories currently installed.)
  Preparing to unpack .../libc6_2.27-3ubuntu1.2_amd64.deb ...
  debconf: DbDriver &quot;config&quot;: /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)
  </code></pre>
  <p>I've tried to use <code>sudo apt-get install -f</code>, but still getting the same error</p>
  <pre><code>Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Correcting dependencies... Done
  The following package was automatically installed and is no longer required:
    libsss-nss-idmap0
  Use 'sudo apt autoremove' to remove it.
  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 72 not upgraded.
  2 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 &quot;config&quot;: /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
  dpkg: warning: files list file for package 'linux-image-5.3.0-53-generic' missing; assuming package has no files currently installed
  (Reading database ... 214594 files and directories currently installed.)
  Preparing to unpack .../libc6_2.27-3ubuntu1.2_amd64.deb ...
  debconf: DbDriver &quot;config&quot;: /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)
  </code></pre>
  <p>Also, in the top-right corner of the screen, a notification appears saying:</p>
  <p>An error ocurred, please run Package Manager from the right-clic menu or apt-get in a terminal to see what is wrong. The error message was: 'Error: BrokenCount&gt;0'. This usually means that your installed packages have unmet dependencies</p>
  <p>And I try to install the new updates but Software Updater shows this message:</p>
  <p>Not enough free disk space
  The upgrade needs a total of 107 M free space on disk '/boot'. Please free at least an additional 49.6 M of disk space on '/boot'. You can remove old kernels using 'sudo apt autoremove', and you could also set COMPRESS=xz in /etc/initramfs-tools/initramfs.conf to reduce the size of your initramfs.</p>
  <p>And I try <code>sudo apt autoremove</code></p>
  <pre><code>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.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
   libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.2) but 2.27-3ubuntu1 is installed
  E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
  </code></pre>
  <p>These are all my installed kernels</p>
  <pre><code>$ sudo dpkg --list | egrep -i --color 'linux-image|linux-headers'
  ii  linux-headers-5.3.0-51                     5.3.0-51.44~18.04.2                              all          Header files related to Linux kernel version 5.3.0
  ii  linux-headers-5.3.0-51-generic             5.3.0-51.44~18.04.2                              amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
  ii  linux-headers-5.3.0-53                     5.3.0-53.47~18.04.1                              all          Header files related to Linux kernel version 5.3.0
  ii  linux-headers-5.3.0-53-generic             5.3.0-53.47~18.04.1                              amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
  ii  linux-headers-5.3.0-59                     5.3.0-59.53~18.04.1                              all          Header files related to Linux kernel version 5.3.0
  ii  linux-headers-5.3.0-59-generic             5.3.0-59.53~18.04.1                              amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
  ii  linux-headers-generic-hwe-18.04            5.3.0.59.113                                     amd64        Generic Linux kernel headers
  ri  linux-image-5.3.0-53-generic               5.3.0-53.47~18.04.1                              amd64        Signed kernel image generic
  ii  linux-image-5.3.0-59-generic               5.3.0-59.53~18.04.1                              amd64        Signed kernel image generic
  ii  linux-image-generic-hwe-18.04              5.3.0.59.113                                     amd64        Generic Linux kernel image
  </code></pre>