安装带有 chocolatey 的包时遇到问题:System.Management.Automation.RemoteException

安装带有 chocolatey 的包时遇到问题:System.Management.Automation.RemoteException

我正在尝试使用以管理员身份运行的 PowerShell 会话安装带有 chocolatey 2.2.2 的包(该包是 texlive)。

我收到以下错误:

-- snip ---
texlive package files install completed. Performing other installation steps.
Additional parameters for installer:
Writing Profile
Writing Profile using Passed Parameters.
TeX Live Profile will be written to C:\tools\texlive.profile
Extracting C:\ProgramData\chocolatey\lib\texlive\tools\install-tl.zip to C:\tools\install-tl-29102315...
C:\tools\install-tl-29102315
Automated TeX Live installation using profile: C:/tools/texlive.profile
Loading https://mirror.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: System.Management.Automation.RemoteException
The install of texlive was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\texlive\tools\chocolateyinstall.ps1'.
 See log for details.

为什么我会收到此错误?我可以更改此“偏好变量”来规避此错误吗?

相关内容