1、缺少证书
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:ProgramDataPackage Cache{849917F8-9A15-34CD-B971-A7478B010F70}V3.0.0.0sfx_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,安装成功。