View Issue Details

IDProjectCategoryView StatusLast Update
0008922Kali LinuxGeneral Bugpublic2025-12-23 07:32
Reporteredge Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionopen 
Summary0008922: dpkg: Waiting for cache lock
Description

Package: dpkg
Essential: yes
Status: install ok installed
Priority: required
Section: admin
Installed-Size: 6390
Maintainer: Kali Developers [email protected]
Architecture: amd64
Multi-Arch: foreign
Version: 1.22.6+kali1
Depends: tar (>= 1.28-1)
Pre-Depends: libbz2-1.0, libc6 (>= 2.34), liblzma5 (>= 5.4.0), libmd0 (>= 0.0.0), libselinux1 (>= 3.1~), libzstd1 (>= 1.5.5), zlib1g (>= 1:1.1.4)
Suggests: apt, debsig-verify
Breaks: libapt-pkg5.0 (<< 1.7~b), lsb-base (<< 10.2019031300)
Conffiles: /etc/alternatives/README 7be88b21f7e386c8d5a8790c2461c92b /etc/cron.daily/dpkg 94bb6c1363245e46256908a5d52ba4fb /etc/dpkg/dpkg.cfg f4413ffb515f8f753624ae3bb365b81b /etc/logrotate.d/alternatives 5fe0af6ce1505fefdc158d9e5dbf6286 /etc/logrotate.d/dpkg 9e25c8505966b5829785f34a548ae11f
Description: Debian package management system This package provides the low-level infrastructure for handling the installation and removal of Debian software packages. . For Debian package development tools, install dpkg-dev.
Homepage: https://wiki.debian.org/Teams/Dpkg
Original-Maintainer: Dpkg Developers [email protected]

Package: dpkg-dev
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 1697
Maintainer: Kali Developers [email protected]
Architecture: all
Multi-Arch: foreign
Source: dpkg
Version: 1.22.6+kali1
Provides: dpkg-build-api (= 0), dpkg-build-api (= 1)
Depends: perl:any, libdpkg-perl (= 1.22.6+kali1), tar (>= 1.28-1), bzip2, xz-utils (>= 5.4.0), patch (>= 2.7), make, binutils
Recommends: build-essential, gcc | c-compiler, fakeroot, gnupg | sq | sqop | pgpainless-cli | sequoia-chameleon-gnupg, gpgv | sq | sqop | pgpainless-cli | sequoia-chameleon-gnupg, libalgorithm-merge-perl
Suggests: debian-keyring
Breaks: debhelper (<< 10.10.1~), libsop-java-java (<< 4.0.7~), pgpainless-cli (<< 1.3.13~), sq (<< 0.33.0~), sqop (<< 0.27.2~)
Conffiles: /etc/dpkg/shlibs.default 1a2b9d0a869e2aa885ae3621c557fb95 /etc/dpkg/shlibs.override 84b1e69080569cc5c613a50887af5200
Description: Debian package development tools This package provides the development tools (including dpkg-source) required to unpack, build and upload Debian source packages. . Most Debian source packages will require additional tools to build; for example, most packages need make and the C compiler gcc. Homepage: https://wiki.debian.org/Teams/Dpkg
Original-Maintainer: Dpkg Developers [email protected]

  1. Exact and complete text of what I typed:
    a. sudo apt install flatpak
    b. sudo apt install gnome-software-plugin-flatpak
    c. flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
    d. sudo apt install ./LibreOffice_24.8.1_Linux_x86-64_deb.tar.gz
    e. sudo apt install ./LibreOffice_24.8.1_Linux_x86-64_deb
    i. Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held ^Z process 7194 (apt)... 0s
    f. ps aux | grep -i apt
    i. root 7194 0.0 0.8 77748 67116 pts/1 T+ 08:38 0:01 apt install gnome-software-plugin-flatpak
    g. sudo kill 7194
    i. did not kill process - process remained - dpkg remains locked an hour later.

  2. Kernel: Linux localhost 6.10.9-amd64 0000001 SMP PREEMPT_DYNAMIC Kali 6.10.9-1kali1 (2024-09-09) x86_64 GNU/Linux

  3. shared C library: -rwxr-xr-x 1 root root 1958352 Aug 25 19:16 /lib/x86_64-linux-gnu/libc.so.6

  4. Cannot install reportbug due to locked dpkg...

  5. Restarting Kali twice did unlock dpkg and libreoffice now installed

  6. I have had multiple occurrences of dpkg issues since booting Kali for the first time 24 hours ago. Restarting the os does not seem for a very efficient way to go. Can I help fix this bug and make dpkg more robust?

Activities

kali-bugreport

kali-bugreport

2024-09-25 19:37

reporter   ~0019825

Kali team doesn't maintain dpkg, just report this to Debian to get this fixed. https://wiki.debian.org/Teams/Dpkg

g0tmi1k

g0tmi1k

2025-12-23 07:32

administrator   ~0021090

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/

Issue History

Date Modified Username Field Change
2024-09-18 17:04 edge New Issue
2024-09-25 19:37 kali-bugreport Note Added: 0019825
2025-12-23 07:32 g0tmi1k Note Added: 0021090
2025-12-23 07:32 g0tmi1k Status new => closed