我的问题类似于this question,但在admin cmd / PS中运行命令并不能解决该页面中已批准答案中所建议的问题。此外,我收到的错误消息也有所不同。
基本上,我正在尝试通过运行在学生的其中一台计算机上安装Octave
choco install octave
在PowerShell或CMD中以管理员身份打开的。但是,我从7zip收到有线消息:
可能是最糟糕的错误消息!然后我在终端中收到这些消息:
Chocolatey v0.10.15
Installing the following packages:
octave
By installing you accept licenses for the packages.
autohotkey.install v1.1.30.03 [Approved]
autohotkey.install package files install completed. Performing other installation steps.
Installing autohotkey.install...
ERROR: Running ["C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_1.1.30.03_setup.exe" /S /x64 ] was not successful. Exit code was '1'. See log for possible error messages.
The install of autohotkey.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\chocolateyInstall.ps1'.
See log for details.
octave.install v5.1.0 [Approved]
octave.install package files install completed. Performing other installation steps.
ERROR: This command cannot be run due to the error: The system cannot find the file specified.
The install of octave.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\octave.install\tools\chocolateyinstall.ps1'.
See log for details.
Octave v5.1.0 [Approved]
octave package files install completed. Performing other installation steps.
The install of octave was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 1/3 packages. 2 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- octave.install (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\octave.install\tools\chocolateyinstall.ps1'.
See log for details.
- autohotkey.install (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\chocolateyInstall.ps1'.
See log for details.
我已经搜索了互联网,前面提到的问题建议您等待!或以管理员身份运行,但我都尝试了但均未成功。其他论坛也提到了AutoHotkey自解压7zip文件损坏或出现问题的问题,但是我仍然不知道该如何通过Chocolatey解决。如果您能在这个问题上帮助我,将不胜感激。
P.S.1。。我认为这与学生在计算机上拥有的某些防病毒软件有关。
P.S.2。从外部安装AutoHotkey,发生同样的错误,与choco尝试在Octave安装之前尝试安装它一样。但是,忽略该错误,八度安装将成功完成。
答案 0 :(得分:0)
autohotkey.install v1.1.30.03 [已批准] autohotkey.install软件包 文件安装完成。执行其他安装步骤。 正在安装autohotkey.install ...错误:正在运行 [“ C:\ ProgramData \ chocolatey \ lib \ autohotkey.install \ tools \ AutoHotkey_1.1.30.03_setup.exe” / S / x64]不成功。退出代码为“ 1”。请参阅日志以了解可能 错误消息
在这种情况下,我将尝试重新启动计算机,再尝试使用choco进行安装(如果在后台进行更新),并且如果无法正常工作,请在一台计算机上手动安装ahk。根据这种巧克力包装的问题,看来它实际上与所使用的防病毒软件有关。
经过一些搜索后,由于temp文件夹的权限,它似乎比我想象的要复杂。将您的问题发送到Chocolatey论坛https://groups.google.com/group/chocolatey
也是一个好主意。