On 2023-06-09 11:26, Helmut Grohne wrote:
When upgrading (or
removing that package), dpkg will attempt to remove /bin (which in its
opinion is an empty directory and the last consumer is releasing it).
However, since dpkg has no clue about file types, it doesn't actually
know that this is a directory and takes care of the /bin -> /usr/bin
symlink using unlink(). And this is where /bin vanishes. Oops.

This might be a dumb question, but could we just special-case this? That is, dpkg would simply not remove /bin specifically? If the list of directories is small, known, and relatively fixed (e.g. /bin, /usr/bin, /lib), that might be workable.

--
Richard

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to