AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 733596
Accepted
Castrohenge
Castrohenge
Asked: 2015-11-04 07:31:30 +0800 CST2015-11-04 07:31:30 +0800 CST 2015-11-04 07:31:30 +0800 CST

无法在 Windows Server 2012 R2 Core 上安装 .NET Framework 4.6

  • 772

使用脱机安装程序 ( https://www.microsoft.com/en-us/download/details.aspx?id=48137 ) 在 Windows Server 2012 R2 Core 机器上安装 .NET 4.6 时,返回以下错误:

Problem signature:
Problem Event Name: VSSetup
Problem Signature 01:   Microsoft .NET Framework 4.6 Setup
Problem Signature 02:   4.6.00081
Problem Signature 03:   14.0.81.0
Problem Signature 04:   1
Problem Signature 05:   unknown
Problem Signature 06:   None_UI_Interactive_Crash
Problem Signature 07:   0xc000008c
Problem Signature 08:   0
Problem Signature 09:   unknown
OS Version: 6.3.9600.2.0.0.272.7
Locale ID:  1033

我还尝试使用巧克力安装 .NET 4.6。以下错误输出到生成的日志:

[11/3/2015, 10:26:0]Launching Download and Install operations simultaneously.
[11/3/2015, 10:26:0] Action: Downloading and/or Verifying Items
[11/3/2015, 10:26:0]All buttons hidden in passive mode
[11/3/2015, 10:26:0]Verifying Digital Signatures: C:\9cc6764dbba6d31323a799ae35\SetupUtility.exe
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 1
[11/3/2015, 10:26:0] C:\9cc6764dbba6d31323a799ae35\SetupUtility.exe: Verifying signature for SetupUtility.exe
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 2
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 3
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 4
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 5
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 6
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 7
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 8
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 9
[11/3/2015, 10:26:0]LoadImage failed for rotation icon 10

我可以在 Windows Server 2012 R2 的完整(gui)版本上成功安装 .NET 4.6。

更新:从 Full Win Server 2012 R2 实例中删除 Windows 功能User-Interfaces-Infra后,会产生与 Core 实例相同的错误。

这两个服务器都作为 AWS 实例运行,并使用 Amazon 自己的 AMI。

windows-server-2012-r2
  • 3 3 个回答
  • 18365 Views

3 个回答

  • Voted
  1. Best Answer
    Jakub Berezanski
    2016-02-10T08:35:32+08:002016-02-10T08:35:32+08:00

    .NET 4.6 和 4.6.1 安装程序都尝试使用 Server Core 上不可用的 GUI 功能并崩溃。即使在被动模式下也会发生这种情况。幸运的是,完全安静的安装工作:

    NDP46-KB3045557-x86-x64-AllOS-ENU.exe /q
    

    或者

    NDP461-KB3102436-x86-x64-AllOS-ENU.exe /q
    

    (/norestart如果您不希望服务器自动重新启动,请添加)

    • 10
  2. Castrohenge
    2015-11-06T05:35:25+08:002015-11-06T05:35:25+08:00

    我的解决方案如下:

    1. 手动提取 [离线安装程序| 中的所有文件] https://www.microsoft.com/en-us/download/details.aspx?id=48137]使用7zip.
    2. 运行dism.exe为 Win Server 2012 Core 64-Bit 添加相应的包。

    这是我使用的脚本。注意该脚本会为 Windows Server 2012 64 位安装适当的软件包,并且尚未在 Win RT 或 32 位系统上进行测试:

    # Installs the .Net 4.6 onto Windows Server 2012 Core instances.
    # Running the exe causes an error due to the User-Interfaces-Infra feature not being installed
    $ErrorAction = "Stop"
    
    # Download URL has been pulled from the Chocolatey DotNet4.6 install script
    $downloadUrl = "http://download.microsoft.com/download/C/3/A/C3A5200B-D33C-47E9-9D70-2F7C65DAAD94/NDP46-KB3045557-x86-x64-AllOS-ENU.exe"
    $fileDestination = "c:\dotnet46.exe"
    $extractDir = "c:\dotnet46"
    
    (New-Object net.webclient).DownloadFile($downloadUrl, $fileDestination)
    
    & 7z.exe e -y -o"$extractDir" "$fileDestination"
    
    dism.exe /online /norestart /add-package /PackagePath:$extractDir\x64-Windows8.1-KB3045563-x64.cab
    
    • 2
  3. Jonas Lear
    2015-11-04T07:42:20+08:002015-11-04T07:42:20+08:00

    看起来安装失败是因为原始安装有问题。这很奇怪。

    我会尝试再次重新安装 .NET 4.6(或运行修复),然后尝试将其卸载。

    • 1

相关问题

  • 我在哪里可以找到 windows 2012 服务器(和 windows 8)上新安装的应用程序

  • ReFS 是否已准备好在 Hyper-V 2012 r2 群集上托管生产 VHDX?

  • Server 2012 重复数据删除:在 Hyper-V 主机或来宾 VM 上运行?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve