Repository navigation
install: Detect Ubuntu codename without /etc/lsb-release - #583
Merged
Merged
Conversation
Ubuntu 26.10 (stonking) images no longer ship /etc/lsb-release, and the base image has no lsb_release command. Both codename lookups returned nothing, so the apt source line had no suite and apt-get update failed: ``` deb [...] https://download-stage.docker.com/linux/ubuntu test E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (Component) ``` Read VERSION_CODENAME from /etc/os-release first, which every supported Ubuntu release provides and get_distribution already relies on. lsb_release and /etc/lsb-release remain as fallbacks when os-release has no codename. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
vvoland
force-pushed
the
update-distro
branch
from
October 13, 2026 16:49
bac22f4 to
af185b5
Compare
Member
|
Was curious of course if it's (e.g.) now an optional install or deprecated, but seems related to https://ubuntuhandbook.org/index.php/2026/07/ubuntu-remove-etc-debian-version/
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ubuntu 26.10 (stonking) images no longer ship /etc/lsb-release, and
the base image has no lsb_release command.
Both codename lookups returned nothing, so the apt source line had no
suite and apt-get update failed:
Read VERSION_CODENAME from /etc/os-release first, which every supported
Ubuntu release provides and get_distribution already relies on.
lsb_release and /etc/lsb-release remain as fallbacks when os-release has
no codename.