【部署】Windows Server 2008 R2上安裝.Net Core 3.0 SDK

原文鏈接:https://github.com/dotnet/core/issues/2202

錯誤描述

In the process of installing Microsoft .NET Core SDK 3.0.100-preview, error ocurred and prompted "A file that is required cannot be installed because the cabinet file C:\ProgramData\Package Cache{849917F8-9A15-34CD-B971-A7478B010F70}V3.0.0.0\sfx_x64.cab has an invalid digital signature. This may indicate that the cabinet file is corrupt. "
Plus, my system environment : Windows Server 2008 R2 Enterprise Service Pack 1, no internet connection. Thanks.


缺少數字證書:

microsoft root certificate authority 2010

microsoft root certificate authority 2011

解決辦法:

一、先安裝數字證書;

找一臺正常裝了VS2015的電腦,Win+R打開運行,輸入certmgr.msc,打開證書管理界面。我們從自己電腦導出一個,我的win7 系統。

導出及導入步驟如下:

1.開始→運行→certmgr.msc

2,展開:證書→受信任的根證書頒發機構→證書

3.右擊展開菜單,所有任務→導入

4.剩下的,就是選擇你下載好的cer文件,然後無限下一步了。

二、證書安裝成功以後,安裝Microsoft Visual C++ 2015 Redistributable

下載地址:https://www.microsoft.com/en-us/download/details.aspx?id=48145

三、安裝Windows補丁

下載地址:https://support.microsoft.com/en-us/kb/2533623

四、重啓電腦,再次安裝.net core hosting和skd,安裝成功。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章