Skip to content
解决 DotNet 安装完,报错:Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again
今天,笔者在一台 CentOS 7.9 服务器上手动安装完 DotNet 6.0.401 并配置好了环境变量之后,照例想查看一下是否安装成功。 shelldotnet --version 预想的版本信息没输出,倒是输出了这么一段错误。 c#Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information. at System.Environment.FailFast(System.String) at System.Globalization.GlobalizationMode+Settings..cctor() at System.Globalization.CultureData.CreateCultureWithInvariantData() at System.Globalization.CultureData.get_Invariant() at System.Globalization.CultureInfo..cctor() at System.Globalization.CultureInfo.get_CurrentUICulture() at System.TimeZoneInfo.GetUtcStandardDisplayName() at System.TimeZoneInfo.CreateUtcTimeZone() at System.TimeZoneInfo..cctor() at System.DateTime.get_Now() at Microsoft.DotNet.Cli.Program.Main(System.String[]) Aborted