sql-server-2008-r2 - Chocolatey 无法安装 SQL Server 2008 R2
问题描述
Chocolatey 无法安装 SQL Server 2008 R2 Management Studio。运行以下命令:
choco install sqlserver2008r2express-managementstudio --version 10.50.4000.1 -y --force
得到如下输出:
Chocolatey v0.10.15
Installing the following packages:
sqlserver2008r2express-managementstudio
By installing you accept licenses for the packages.
Progress: Downloading sqlserver2008r2express-managementstudio 10.50.4000.1... 100%
sqlserver2008r2express-managementstudio v10.50.4000.1 (forced) [Approved]
sqlserver2008r2express-managementstudio package files install completed. Performing other installation steps.
The installation of sqlserver2008r2express-managementstudio failed, please see installer log files at "C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log" and "C:\Users\devopsadmin\AppData\Local\Temp\chocolatey\sqlsetup.log" for more details.
The install of sqlserver2008r2express-managementstudio was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
巧克力日志没有洞察力,日志的最后几行如下所示:
2019-10-09 16:51:36,603 7552 [DEBUG] - Running 'ChocolateyScriptRunner' for sqlserver2008r2express-managementstudio v10.50.4000.1 with packageScript 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio', installArguments: '', packageParameters: '',
2019-10-09 16:51:36,603 7552 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1'
2019-10-09 16:51:37,607 7552 [INFO ] - The installation of sqlserver2008r2express-managementstudio failed, please see installer log files at "C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log" and "C:\Users\devopsadmin\AppData\Local\Temp\chocolatey\sqlsetup.log" for more details.
2019-10-09 16:51:37,623 7552 [DEBUG] - ----------------------------------------------------------------------
2019-10-09 16:51:37,639 7552 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2019-10-09 16:51:37,639 7552 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-10-09 16:51:37,712 7552 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-10-09 16:51:37,774 7552 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio'
2019-10-09 16:51:37,790 7552 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\sqlserver2008r2express-managementstudio.nupkg'
with checksum '42BF1341CA54DF9C7275BC9978B7305E'
2019-10-09 16:51:37,790 7552 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\sqlserver2008r2express-managementstudio.nuspec'
with checksum 'AA8FC96E1C313E7C56B0E693A0847A6F'
2019-10-09 16:51:37,790 7552 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1'
with checksum '6F432752E869F3D15285952C1E92303C'
2019-10-09 16:51:37,837 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.arguments".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.extra".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.version".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.sxs".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.pin".
2019-10-09 16:51:37,853 7552 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\.chocolateyPending".
2019-10-09 16:51:37,869 7552 [INFO ] - The install of sqlserver2008r2express-managementstudio was successful.
2019-10-09 16:51:37,869 7552 [INFO ] - Software install location not explicitly set, could be in package or
default install location if installer.
2019-10-09 16:51:37,869 7552 [DEBUG] - Attempting to delete file "C:\Users\devopsadmin\AppData\Local\NuGet\Cache\sqlserver2008r2express-managementstudio.10.50.4000.1.nupkg".
2019-10-09 16:51:37,884 7552 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-10-09 16:51:37,884 7552 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-10-09 16:51:37,901 7552 [DEBUG] - Exiting with 0
想知道问题是什么以及如何解决?
解决方案
您能否也检查其他两个日志 - “C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log”和“C:\Users\devopsadmin\AppData\Local\Temp\chocolatey\sqlsetup.log”
推荐阅读
- node.js - 如何向特定用户 socket.io 发送消息
- python - 在单独的 Spark 数据框中读取不同文件夹中的多个 json 文件
- c# - WPF 组合框选择名称使用 ID
- java - 动态代理的 javassist.CannotCompileException
- python - 使用 Python 测试链接
- javascript - 如何使用 POST 方法修复 net::err_aborted 415?
- java - Java - 从 MultipartFormDataInput 读取消息/rfc822
- python - 无法将 Dask 数据框与 Plotly Dash 一起使用
- mysql - mysql 8上垂直输出的奇怪错误
- javascript - 在网站上的 div 中显示在浏览器网络控制台中可见的 ajax 请求/响应