[Bug 1960749] Re: dpkg incorrectly installs singular-doc in jammy Docker container
Julian Andres Klode
1960749 at bugs.launchpad.net
Mon Feb 14 12:28:06 UTC 2022
So the reason why the symlinks are there is because they could be
pointing to directories and then if you had a file extracted in there,
you'd get not found if you'd skip the symlink. Like consider
/usr/share/doc/foo/bar as a symlink to /usr/share/foo/bar
and another package installs a file into /usr/share/doc/foo/bar/ rather
than the canonical location.
This is documented in the dpkg manual page and tracked upstream in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859646
dpkg -V is tracked upstream in https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=975338
** Bug watch added: Debian Bug tracker #859646
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859646
** Bug watch added: Debian Bug tracker #975338
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975338
** Also affects: dpkg (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859646
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1960749
Title:
dpkg incorrectly installs singular-doc in jammy Docker container
Status in dpkg package in Ubuntu:
Triaged
Status in dpkg package in Debian:
Unknown
Bug description:
Also reported on https://github.com/tianon/docker-brew-ubuntu-
core/issues/230
Using official Jammy image in Docker (macOS) and Podman (Fedora).
In both cases, using CLI in the image and running
apt install singular-doc
dpkg -V singular-doc
reports a lot of missing files. In fact, the only present files are dangling links to missing files in the package.
(EDIT: the latter should not be there, it contradics `exclude` policy for dpkg installed in the Docker image)
The package itself is not broken - extracting it in Jammy not in Docker/Podman (say, in an lxc container) works.
And extracting it in Debian/bookworm CLI run in Docker works too.
As well, the same behaviour is observed using the corresponding
singular-doc_4.2.1-p3+ds-1_all.deb file, and installing it using dpkg
-i. This points to dpkg as the culprit.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1960749/+subscriptions
More information about the foundations-bugs
mailing list