Skip to content

Source order affects package dependencies #387

Description

@0

It's common for Ubuntu packages to be present in multiple repositories. For example, updates to a package in xenial might go to xenial-security and xenial-updates at different times. In the absence of priorities, apt deals with this by installing the latest version from any repository.

This works fine with bcfg2 so long as the dependencies are the same across repositories. If they differ, then bcfg2 arbitrarily selects the dependencies from the first repository that has the package (ref).

I've found this to be problematic with kernel packages. For example, linux-headers-generic currently depends on linux-headers-4.4.0-75-generic in xenial-security and on linux-headers-4.4.0-77-generic in xenial-updates. If I have xenial-security listed first, then bcfg2 wants to see version 75, but apt installs 77.

My workaround for this is to rearrange the sources as necessary, but that won't work in every case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions