Skip to content

Version 10.0.1_1, 10.0.2_1 contains invalid character _ for Debian package versioning #52602

@fooxlj07

Description

@fooxlj07

Describe the bug

The dotnet runtime versions 10.0.1_1 and 10.0.2_1 do not comply with standard Debian semantic versioning
requirements. According to Debian packaging standards, the upstream-version may contain only alphanumerics
("A-Za-z0-9") and the characters . + - : ~. The underscore character (_) in these versions violates this
constraint, causing packaging and dependency resolution issues on Debian-based systems.

To Reproduce

  1. Attempt to package or install dotnet runtime version 10.0.1_1 or 10.0.2_1 on a Debian-based system
  2. Observe that the version string fails Debian semantic version validation due to the underscore character
  3. Package managers (apt/dpkg) may reject or have issues processing these versions

Example:

# Attempting to reference or install dotnet 10.0.1_1
apt-cache policy dotnet-runtime-10.0
# Version string validation fails due to underscore in "10.0.1_1"

Exceptions (if any)

dpkg: error processing package dotnet-runtime-10.0 (--install):
 version string has embedded spaces/invalid characters
or
Invalid version format: 10.0.1_1
Debian versions must match: [A-Za-z0-9.+\-:~]+

Further technical details

[Include your dotnet --info output here]

- OS: Debian/Ubuntu-based Linux distribution
- Package manager: apt/dpkg
- Affected versions: dotnet runtime 10.0.1_1, 10.0.2_1

Expected behavior

Dotnet runtime versions should follow Debian semantic versioning standards. Versions should use allowed separators
(., +, -, :, ~) instead of underscores. For example:
- 10.0.1_1 → 10.0.1-1 or 10.0.1+1
- 10.0.2_1 → 10.0.2-1 or 10.0.2+1

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions