Some installed files not reported

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
debian, python, ubuntu

Research direction

Start by reproducing the package metadata case using /var/lib/dpkg/status and the architecture-qualified files under /var/lib/dpkg/info/libc6. Compare the installed-file results for the amd64 and i386 records with their corresponding .list files. Done means all installed files represented by those package entries are reported consistently.

Written by the indexing model from the issue text.

Description

For a status package such as:

Package: libc6
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 10954
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Multi-Arch: same
Source: glibc
Version: 2.23-0ubuntu11.3
Replaces: libc6-amd64
Depends: libgcc1
Suggests: glibc-doc, debconf | debconf-2.0, locales
Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.23), locales-all (<< 2.23), lsb-core (<= 3.2-27), nscd (<< 2.23)
Conffiles:
 /etc/ld.so.conf.d/x86_64-linux-gnu.conf 593ad12389ab2b6f952e7ede67b8fbbf
Description: GNU C Library: Shared libraries
 Contains the standard libraries that are used by nearly all programs on
 the system. This package includes shared versions of the standard C library
 and the standard math library, as well as many others.
Homepage: http://www.gnu.org/software/libc/libc.html
Original-Maintainer: GNU Libc Maintainers <[email protected]>

The list of installed files at

  • /var/lib/dpkg/info/libc6:amd64.list

may be missed

Note also the that same status file may contain

Package: libc6
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 9587
Maintainer: Ubuntu Developers <[email protected]>
Architecture: i386
Multi-Arch: same
Source: glibc
Version: 2.23-0ubuntu11.3
Replaces: libc6-i386, libc6-xen
Provides: libc6-i686, libc6-xen
Depends: libgcc1
Suggests: glibc-doc, debconf | debconf-2.0, locales
Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.23), locales-all (<< 2.23), nscd (<< 2.23)
Conflicts: libc6-xen
Conffiles:
 /etc/ld.so.conf.d/i386-linux-gnu.conf 1c63da36f33ec6647af1d8faff9b9795
Description: GNU C Library: Shared libraries
 Contains the standard libraries that are used by nearly all programs on
 the system. This package includes shared versions of the standard C library
 and the standard math library, as well as many others.
Homepage: http://www.gnu.org/software/libc/libc.html
Original-Maintainer: GNU Libc Maintainers <[email protected]>

We have also all these other files in /var/lib/dpkg/info/libc6

libc6:amd64.conffiles    libc6-dbg:amd64.md5sums  libc6:i386.postrm
libc6:amd64.list         libc6-dev:amd64.list     libc6:i386.preinst
libc6:amd64.md5sums      libc6-dev:amd64.md5sums  libc6-i386.shlibs
libc6:amd64.postinst     libc6-i386.conffiles     libc6:i386.shlibs
libc6:amd64.postrm       libc6:i386.conffiles     libc6-i386.symbols
libc6:amd64.preinst      libc6-i386.list          libc6:i386.symbols
libc6:amd64.shlibs       libc6:i386.list          libc6:i386.templates
libc6:amd64.symbols      libc6-i386.md5sums       libc6-i386.triggers
libc6:amd64.templates    libc6:i386.md5sums       libc6:i386.triggers
libc6:amd64.triggers     libc6:i386.postinst      
libc6-dbg:amd64.list     libc6-i386.postrm        
Dominant language
Python
Stars
17
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/debian-inspector

All issues in aboutcode-org/debian-inspector

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.