Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt::backports pins the wrong suite #1187

Open
Debilski opened this issue Jun 10, 2024 · 1 comment · May be fixed by #1188
Open

apt::backports pins the wrong suite #1187

Debilski opened this issue Jun 10, 2024 · 1 comment · May be fixed by #1188

Comments

@Debilski
Copy link

Describe the Bug

include apt::backports pins the wrong repository on Debian bookworm.


...
 100 http://deb.debian.org/debian bookworm-backports/main amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=main,b=amd64
     origin deb.debian.org
...

As we can see, the backports are registered as a=stable-backports. However the pinning that is used (in file /etc/apt/preferences.d/backports.pref) reads:

# This file is managed by Puppet. DO NOT EDIT.
Explanation: apt: backports
Package: *
Pin: release a=bookworm-backports
Pin-Priority: 200

Manually overriding the release for apt::backports solves the problem but I suppose this should rather work out of the box as there is no warning generated anywhere and the mistake is not really obvious to discover.

kenyon added a commit to kenyon/puppetlabs-apt that referenced this issue Jun 10, 2024
Debian 11 bullseye and Debian 12 bookworm backports release files look
like this:

https://deb.debian.org/debian/dists/bullseye-backports/InRelease:

    Suite: bullseye-backports
    Codename: bullseye-backports

https://deb.debian.org/debian/dists/bookworm-backports/InRelease:

    Suite: stable-backports
    Codename: bookworm-backports

Using "release" (aka Suite in the InRelease file) causes our pin to not
match for bookworm because they changed it to stable-backports instead
of $codename-backports. We can use codename to support both for this
pin.

Fixes puppetlabs#1187.
@kenyon kenyon linked a pull request Jun 10, 2024 that will close this issue
@kenyon
Copy link

kenyon commented Jun 10, 2024

#1188 should fix this.

kenyon added a commit to kenyon/puppetlabs-apt that referenced this issue Jun 10, 2024
Debian 11 bullseye and Debian 12 bookworm backports release files look
like this:

https://deb.debian.org/debian/dists/bullseye-backports/InRelease:

    Suite: bullseye-backports
    Codename: bullseye-backports

https://deb.debian.org/debian/dists/bookworm-backports/InRelease:

    Suite: stable-backports
    Codename: bookworm-backports

Using "release" (aka Suite in the InRelease file) causes our pin to not
match for bookworm because they changed it to stable-backports instead
of $codename-backports. We can use codename to support both for this
pin.

Fixes puppetlabs#1187.
kenyon added a commit to kenyon/puppetlabs-apt that referenced this issue Jun 10, 2024
Debian 11 bullseye and Debian 12 bookworm backports release files look
like this:

https://deb.debian.org/debian/dists/bullseye-backports/InRelease:

    Suite: bullseye-backports
    Codename: bullseye-backports

https://deb.debian.org/debian/dists/bookworm-backports/InRelease:

    Suite: stable-backports
    Codename: bookworm-backports

Using "release" (aka Suite in the InRelease file) causes our pin to not
match for bookworm because they changed it to stable-backports instead
of $codename-backports. We can use codename to support both for this
pin.

Fixes puppetlabs#1187.
kenyon added a commit to kenyon/puppetlabs-apt that referenced this issue Jun 15, 2024
Debian 11 bullseye and Debian 12 bookworm backports release files look
like this:

https://deb.debian.org/debian/dists/bullseye-backports/InRelease:

    Suite: bullseye-backports
    Codename: bullseye-backports

https://deb.debian.org/debian/dists/bookworm-backports/InRelease:

    Suite: stable-backports
    Codename: bookworm-backports

Using "release" (aka Suite in the InRelease file) causes our pin to not
match for bookworm because they changed it to stable-backports instead
of $codename-backports. We can use codename to support both for this
pin.

Fixes puppetlabs#1187.
kenyon added a commit to kenyon/puppetlabs-apt that referenced this issue Oct 4, 2024
Debian 11 bullseye and Debian 12 bookworm backports release files look
like this:

https://deb.debian.org/debian/dists/bullseye-backports/InRelease:

    Suite: bullseye-backports
    Codename: bullseye-backports

https://deb.debian.org/debian/dists/bookworm-backports/InRelease:

    Suite: stable-backports
    Codename: bookworm-backports

Using "release" (aka Suite in the InRelease file) causes our pin to not
match for bookworm because they changed it to stable-backports instead
of $codename-backports. We can use codename to support both for this
pin.

Fixes puppetlabs#1187.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants