Skip to content

fix(docker): add libicu* for .NET/PowerShell globalization on Ubuntu 26.04 - #15

Merged
jmcombs merged 1 commit into
mainfrom
fix/add-libicu-dependency
Aug 2, 2026
Merged

fix(docker): add libicu* for .NET/PowerShell globalization on Ubuntu 26.04#15
jmcombs merged 1 commit into
mainfrom
fix/add-libicu-dependency

Conversation

@jmcombs

@jmcombs jmcombs commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the Docker build failure introduced after the locale fix.

Error:

Process terminated. Couldn't find a valid ICU package installed on the system.
Please install libicu (or icu-libs) using your package manager and try again.
...
Aborted (core dumped)

Root cause

.NET / PowerShell requires the ICU libraries for globalization. The previous package list installed locales but not the ICU runtime. On ubuntu:latest (currently 26.04) this causes pwsh to FailFast when the module-install step runs.

Change

Add libicu* to the apt-get install list in the base stage. On current Ubuntu this resolves to libicu78. The wildcard keeps the Dockerfile forward-compatible as Ubuntu advances ICU versions.

No base-image pin (stays on ubuntu:latest per preference).

Test plan

  • Confirmed libicu78 is the runtime package on Ubuntu 26.04 / ubuntu:latest
  • Matches Microsoft’s own PowerShell Dockerfiles (they install the versioned libicuNN package)
  • CI build succeeds after merge

.NET/PowerShell requires ICU for globalization. Without it, pwsh
aborts with "Couldn't find a valid ICU package". libicu* resolves
to the current runtime package (libicu78 on ubuntu:latest / 26.04)
and stays forward-compatible as Ubuntu advances.
@jmcombs
jmcombs merged commit 795bc44 into main Aug 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant