Fix: ICU package while hosting old .NET in Linux
This avoids ICU entirely and is the cleanest solution on Ubuntu 24.
1️⃣ Install basic dependencies
sudo apt updatesudo apt install -y libssl1.1 zlib1g
libssl1.1 may require a compatibility package or manual install on 24.04.2️⃣ Set environment variable
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
Or permanently:
echo 'export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1' >> ~/.bashrc
Or for systemd service:
Environment=DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
Pros
- No ICU dependency
- Stable on Ubuntu 24
- Works for most business apps
Cons
- No culture-specific formatting (dates, numbers, collation)