【问题标题】:Error when installing chocolatey on windows 7 64 bits在 Windows 7 64 位上安装巧克力时出错
【发布时间】:2020-09-23 17:50:48
【问题描述】:

我正在尝试在 Windows 7 64 位上安装 Chocolatey。我正在使用文档Here 当我在命令提示符下键入下面的代码时。

PowerShell Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

它会抛出如下截图所示的错误

我不知道错误是什么。我只是在运行代码之前在代码前面添加了 Powershell

【问题讨论】:

    标签: chocolatey


    【解决方案1】:

    升级你的powershell版本并尝试我在升级我的powershell版本后得到这个错误这个错误geon

    【讨论】:

      【解决方案2】:

      Chocolatey 网站需要 TLS 1.2 才能访问它并从中下载安装脚本。

      查看this blog post,因为它解释了更改、您可以在 PowerShell 中运行的命令以查看您是否受支持以及您可以为旧旧系统(例如 Windows 7)执行哪些操作。

      【讨论】:

        【解决方案3】:

        好的,如果我回来,我会记录下将 Chocolatey 安装到 Windows 7 的整个过程。

        1. 安装所有 Windows 更新。
          1. 检查更新。
          2. 安装更新
          3. 重启
          4. 重复上述步骤一百万次,直到没有新的更新(约 20 小时)。
        2. 安装NET4.5 如果没有安装,应该安装。
        3. 安装 Windows 管理框架 WMF
        4. 安装powershell
          1. 转到https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2
          2. 点击MSI package
          3. 下载并安装。
        5. 以管理员身份运行 powershell。
          1. 从官方链接https://chocolatey.org/install安装chocolatey
        6. 清理光盘 C:从 Windows 更新中删除所有临时文件(在我的情况下约为 7GB)

        【讨论】:

          猜你喜欢
          • 2012-10-11
          • 2015-03-30
          • 1970-01-01
          • 2019-07-21
          • 2011-01-26
          • 1970-01-01
          • 2017-09-04
          • 1970-01-01
          • 2015-06-26
          相关资源
          最近更新 更多