Skip to content

Packages installed by --install-packages end up in final target without apt metadata #65

@jw-rav

Description

@jw-rav

This can cause inconsistencies and might confuse unrelated subsystems.

For example: I added emacs-nox to the server ISO as an aid to investigate and fix on the fly problems caused by my autoinstall user-data.

The files from the emacs-nox package and even the postinst-created update-alternatives symlinks ended up in the target system, forcing emacs-nox to be run instead of emacs-gtk, even though apt was showing that emacs-nox is not installed at all.

Even worse: the fix is not exactly straight-forward, since "apt remove emacs-nox" will just say that there's nothing to do (apt thinks emacs-nox was never installed, right?). So to fix the problem , I had to:

  1. install emacs-nox
  2. remove emacs-gtk
  3. install emacs-gtk
  4. remove emacs-nox

Even more confusing is that dpkg metadata seem to have survived into the target-system, since "dpkg -L emacs-nox" happily lists all the files.

IMHO, packages installed by --install-packages should

  1. either not be forwarded to the target system
  2. or their apt metadata should be forwarded as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions