Skip to content

Java 21 upgrade break Debian version consistency #589

@GwenaelPellenArkeup

Description

@GwenaelPellenArkeup

Hello.

Merge request #584 break Debian version consistency

Today, download image google/cloud-sdk:debian_component_based, debian version is wrong.

documentation say

:debian_component_based, :VERSION-debian_component_based: Similar to stable, with additional components (List of components installed in the image are listed here) pre-installed. The image is build upon the latest Google-Provided Debian 12 base image and uses component manager to install the components. To install specific gcloud versions, use the :VERSION-debian_component_based tag.

but

docker run -i -t --rm google/cloud-sdk:debian_component_based lsb_release -cs
trixie

How ? (i search)

docker pull google/cloud-sdk:debian_component_based
...

show debian distribution

docker run -i -t --rm google/cloud-sdk:debian_component_based lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie

show source.list

docker run -i -t --rm google/cloud-sdk:debian_component_based cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ sid main

show debian.sources

docker run -i -t --rm google/cloud-sdk:debian_component_based cat /etc/apt/sources.list.d/debian.sources 
Types: deb
# http://snapshot.debian.org/archive/debian/20250520T000000Z
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
# http://snapshot.debian.org/archive/debian-security/20250520T000000Z
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

show policy

docker run -i -t --rm google/cloud-sdk:debian_component_based apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm-updates/main amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm/main amd64 Packages
     release v=12.11,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian sid/main amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:

so,

apt-get update -qqy && apt-get -qqy upgrade && \

run an update and upgrade package, change distribution name and version.

docker run -i -t --rm google/cloud-sdk:debian_component_based apt-cache policy lsb-release
lsb-release:
  Installed: 12.1-1
  Candidate: 12.1-1
  Version table:
 *** 12.1-1 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
     12.0-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
docker run -i -t --rm google/cloud-sdk:debian_component_based lsb_release -a                
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie

This break all package installation with "lsb_release -cs" (return "trixie")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions