【问题标题】:Installing GitHub for Windows为 Windows 安装 GitHub
【发布时间】:2013-05-16 07:14:57
【问题描述】:

我正在尝试为 Windows 安装 GitHub。我尝试以正常方式安装它并收到此错误:

Application installation did not succeed. Cannot locate application files on the server. Contact the application vendor or your administrator for assistance.

点击Details...给了我这个:

PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.18034
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.18034 built by: FX45RTMGDR
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : http://github-windows.s3.amazonaws.com/GitHub.application
                        Server      : AmazonS3
    Application url         : http://github-windows.s3.amazonaws.com/Application%20Files/GitHub_1_0_47_0/GitHub.exe.manifest
                        Server      : AmazonS3

IDENTITIES
    Deployment Identity     : GitHub.application, Version=1.0.47.0, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86
    Application Identity        : GitHub.exe, Version=1.0.47.0, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86, type=win32

APPLICATION SUMMARY
    * Installable application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of http://github-windows.s3.amazonaws.com/GitHub.application resulted in exception. Following failure messages were detected:
        + Downloading http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_47_0/msvcp100.dll.deploy did not succeed.
        + The remote server returned an error: (403) Forbidden.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [5/21/2013 8:19:19 AM] : Activation of http://github-windows.s3.amazonaws.com/GitHub.application has started.
    * [5/21/2013 8:19:19 AM] : Processing of deployment manifest has successfully completed.
    * [5/21/2013 8:19:19 AM] : Installation of the application has started.
    * [5/21/2013 8:19:20 AM] : Processing of application manifest has successfully completed.
    * [5/21/2013 8:19:24 AM] : Found compatible runtime version 4.0.30319.
    * [5/21/2013 8:19:24 AM] : Request of trust and detection of platform is complete.

ERROR DETAILS
    Following errors were detected during this operation.
    * [5/21/2013 8:19:25 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_47_0/msvcp100.dll.deploy did not succeed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
            at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
            at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
        --- Inner Exception ---
        System.Net.WebException
        - The remote server returned an error: (403) Forbidden.
        - Source: System
        - Stack trace:
            at System.Net.HttpWebRequest.GetResponse()
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

我按照this post 上的建议下载了github-windows.s3.amazonaws.com/GitHub.application 和最新版本的Chrome。当我尝试运行它时,我得到了这个错误:

Application cannot be started. Contact the application vendor.

有了这个细节:

PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.18034
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.18034 built by: FX45RTMGDR
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Users/SESA277661/Downloads/GitHub.application

IDENTITIES
    Deployment Identity     : GitHub.application, Version=1.0.47.0, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86

APPLICATION SUMMARY
    * Installable application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\SESA277661\Downloads\GitHub.application resulted in exception. Following failure messages were detected:
        + Deployment and application do not have matching security zones.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [5/21/2013 8:29:33 AM] : Activation of C:\Users\SESA277661\Downloads\GitHub.application has started.
    * [5/21/2013 8:29:33 AM] : Processing of deployment manifest has successfully completed.
    * [5/21/2013 8:29:33 AM] : Installation of the application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [5/21/2013 8:29:33 AM] System.Deployment.Application.InvalidDeploymentException (Zone)
        - Deployment and application do not have matching security zones.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
            at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
            at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

从这里我被困住了。任何建议将不胜感激。

我在工作计算机上,所以可能有一些安全设置阻止了某些东西,但我不知道这一切。

谢谢, 克里斯

【问题讨论】:

  • 您在工作中的其他计算机上的其他用户是否看到相同的问题?昨天 GitHub 出现问题 (status.github.com/messages),今天问题仍然存在吗?
  • 我今天遇到了不同的问题。错误消息说服务器在其他文件之一上返回了 403 禁止。当我尝试浏览该文件时,我们的内部安全软件告诉我它是病毒,所以它被阻止了...sigh 我想我会尝试让我们的一位 IT 人员过来帮忙我以后出去。也许他可以暂时绕过它什么的。
  • 显然绕过我们的防火墙的唯一方法是离开网络......我用谷歌搜索并没有找到离线安装程序。我通过电子邮件发送了 github 支持,看看他们是否可以给我一个安装程序或下载的 zip 文件或其他文件。
  • Github 支持与您联系了吗?我在工作机器上遇到了同样的问题。
  • 是的。他们说没有离线安装程序。他们目前正在开发一个,但还没有。我能找到的唯一解决方案是让我的计算机脱离工作网络并重试。根据您的网络设置方式,代理或 VPN 可能会起作用。

标签: windows-7-x64 github-for-windows


【解决方案1】:

我遇到了完全相同的问题,结果发现 Web 内容过滤系统在许多 git 客户端文件中出现错误,其中一些包含在下面。

欺骗文件

http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/msvcp100.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/sqlite3.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/7za.exe.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/RestSharp.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/git2.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/ReactiveUI.Xaml.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/zh-Hant/Microsoft.Expression.Interactions.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/GitHub.UI.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/GitHub.exe.deploy

缺少数字签名

http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/chromium-pack.7z.deploy

包含的文件数超出限制

http://github-windows.s3.amazonaws.com/Application Files/GitHub_1_0_48_0/PortableGit.7z.deploy

我想您应该联系您的网络管理员并让他为这些文件设置例外,或者为整个http://github-windows.s3.amazonaws.com 设置更好的例外。尽管如此,恕我直言,这不应该发生。我会尝试与 Github 支持人员取得联系。

【讨论】:

    【解决方案2】:

    我也遇到了同样的问题,我可以下载安装程序,但是在安装程序 (GitHubSetup.exe) 完成下载后,程序无法启动,它崩溃并显示错误日志。 我使用的是 Windows 8.1;我在 Windows 7 中从未遇到过任何问题。 所以我尝试右键单击并“以管理员身份运行”,它再次下载东西然后启动就好了。

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题,并且在我尝试在我的 Windows 8 Pro 上安装 github 时遇到了 20 多次以上的问题。

      在不知不觉中发现的解决方法是——登录Github账号,然后下载包,尝试安装不注销,直到安装完成。

      它对我有用。如果您有更好的方法来处理这个问题,请尝试并提供。

      谢谢。

      【讨论】:

        【解决方案4】:

        简介

        我也遇到过类似的问题:文件下载了 75% 后,卡住了。 然后大约 5 分钟后,我收到了与您完全相同的错误消息。

        我是如何解决的

        正如Geogrgios提到的above,你需要给防火墙添加一个例外。

        1. 转到“控制面板”并单击“系统和安全”(确保“查看方式:”设置为“类别”,而不是“大图标”或“小图标”)。
        2. 选择 Windows 防火墙(右侧菜单中的第二个选项)。然后会显示左侧菜单中的“允许程序或功能通过Windows防火墙”,请点击。
        3. 点击“更改设置”添加例外。
        4. 点击已启用的“允许另一个程序..”,然后在新窗口中点击“浏览..”。
        5. 选择“GithubSetup.exe”文件,按“打开”,然后按“添加”和“确定”。
        6. 运行“GithubSetup.exe”,希望一切顺利。

        可以在here找到更好的说明(带截图)

        【讨论】:

          【解决方案5】:

          我也遇到过类似的问题。根本原因有两个。 1. 代理:我使用了公司代理,这使我无法连接到下载中心。 2. 防火墙:我使用的是启用了赛门铁克网络访问控制的公司笔记本电脑(此处提供了与防火墙相关的设置)

          我禁用了赛门铁克网络访问控制并使用我的个人互联网连接进行下载和安装。之后没有遇到任何问题。

          【讨论】:

          • 啊……该死的 McAfee 妨碍了我的工作。谢谢!
          【解决方案6】:

          只是从 Chrome 切换到 Internet Explorer 对我有用 =) 我不知道为什么,但它确实有帮助。在下载了 95%(!!) 的文件后,它就卡住了。

          【讨论】:

            【解决方案7】:

            如果您使用的是卡巴斯基,请先禁用保护和控制。 Kaspersky Antivirus 会静默删除所有部署文件,并给出如下错误(来自install.log):

            Launching Application.
            URLDownloadToCacheFile failed with HRESULT '-2146697211'
            Error: An error occurred trying to download 'http://github-windows.s3.amazonaws.com/GitHub.application'.
            

            或者像这样(下载http://github-windows.s3.amazonaws.com/GitHub.application并手动启动):

            * [15/09/2015 11:58:50] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
                - Unsuccessfull download at file:///C:/Users/user/Downloads/Application Files/GitHub_3_0_5_2/GitHub.exe.manifest.
                - Source: System.Deployment
                - Stack trace:
                    in System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
                    in  System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
                    in System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
                    in System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
                    in System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
                    in System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
                    in System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
                    in System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
                    in System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
                --- Internal exception ---
            

            【讨论】:

              【解决方案8】:

              经过反复尝试,我的安装程序停滞在 85MB 左右。在尝试了所有这些答案都没有成功之后,the one found here 终于为我工作了。我取消,从任务管理器中杀死 dfsvc.exe(我使用的是 Windows 10),删除 C:\Users\{username}\AppData\Local\Apps\2.0,打开 Internet Explorer(不是 Chrome 或 Firefox)并导航到这个确切的网址:

              https://github-windows.s3.amazonaws.com/GitHub.application
              

              【讨论】:

              • 这是为我解决问题的那个。我也是 Windows 10 用户!
              • 不适用于我 - 也是 Windows 10 用户。我还在努力解决这个问题,太烦人了。它曾经也适用于我的 Windows 10。
              • 杀死进程 (dfsvc.exe) 并清除 AppData 文件夹的内容似乎对我有用。然后我运行了我最初下载的 GitHubSetup.exe。
              • 我成功更改了GitHubSetup.exe 上的网址。从命令行运行以下命令:GitHubSetup.exe -url=https://github-windows.s3.amazonaws.com/ 然后重新运行设置。
              【解决方案9】:

              我打开 Microsoft edge 并导航到:

              https://github-windows.s3.amazonaws.com/GitHub.application

              第一次工作!

              也可以在 Internet Explorer 中使用

              这个想法来自: 刺激77

              https://stackoverflow.com/a/33021657/606724

              【讨论】:

                【解决方案10】:

                原来对我来说问题是我的公司网络在网络级别阻止了下载。通过个人 VPN 超出我公司的网络策略,我解决了这个问题。

                当我尝试下载 GitHub 时,安装 ClickOnce 应用时会出现以下错误:

                错误摘要 以下是错误摘要,这些错误的详细信息在日志后面列出。 * 激活 C:\Users\Judah\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\GitHub.appref-ms|导致异常。检测到以下失败消息:

                    + Downloading http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_1_1_4/libGLESv2.dll.deploy did not succeed.
                    + Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
                    + An existing connection was forcibly closed by the remote host
                

                错误消息显示无法下载http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_1_1_4/libGLESv2.dll.deploy。尝试使用 Chrome、IE 和 Edge 直接下载该文件均失败。

                我开始怀疑是公司网络策略阻止了下载。

                所以,我连接到个人 VPN,再次下载,它工作正常。您也可以使用 VPN、手机网络共享或公司网络之外的其他网络进行下载。

                【讨论】:

                  【解决方案11】:

                  如果您使用 Windows 10:

                  1. 杀死 dfsvc.exe
                  2. 删除此文件夹:%LocalAppData%\Apps\2.0
                  3. 在 Internet Explorer 中键入:https://github-windows.s3.amazonaws.com/GitHub.application

                  【讨论】:

                    【解决方案12】:

                    当我尝试安装它时,我也遇到了同样的问题。即使我使用的是 VPN,由于网络配置问题,我也无法安装它。所以我关闭了防火墙并尝试安装它。由于一些供应商问题,它对我没有用,我尝试重新安装它。最后,它对我有用。

                    【讨论】:

                      【解决方案13】:

                      感谢this 的帖子,我刚刚使用了 Internet Explorer 并导航到:

                      https://github-windows.s3.amazonaws.com/GitHub.application

                      它完全安装了 Github for Windows(我有 Windows 8.1)。

                      在此之前,我使用 Chrome 下载的安装程序无法安装 Github for Windows(我曾经收到上述“未成功”错误)。

                      【讨论】:

                        【解决方案14】:

                        对前面的答案再详细一点:

                        1- 打开 Windows 资源管理器(按“Windows+E”)

                        2- 在其地址栏中键入 %LocalAppData%\Apps 并按 Enter。

                        3- 它应该找到一个文件夹“2”。删除文件夹“2”。

                        4- 打开任务管理器(开始菜单,然后键入任务管理器并选择它。 或者按 Ctrl+Alt+Delete 并选择任务管理器)。

                        5- 点击“详情”标签。

                        6- 杀死所有名为 dfsvc.exe 的文件(对我来说有两个)。

                        7- 打开 Internet Explorer (IE)

                        8- 将此地址粘贴到地址栏中,然后按 Enter:

                        https://github-windows.s3.amazonaws.com/GitHub.application

                        9- 它将开始安装 Github for Windows。

                        【讨论】:

                          【解决方案15】:

                          解决这个问题:

                          1. 转到Windows Firewall => Advanced 部分
                          2. 转到Action > Properties
                          3. 在域、私有和公共中将firwall state 设置为off
                          4. 禁用windows defender 或任何其他防病毒软件。
                          5. 点击Windows + R按钮打开run窗口
                          6. 粘贴“%LocalAppData%\Apps
                          7. 删除名为“2.0”的文件夹。
                          8. 打开Microsoft edgeInternet Explorer
                          9. 打开“https://github-windows.s3.amazonaws.com/GitHub.application
                          10. 单击安装。

                          这个过程会比平时慢,但只要它需要运行就让它运行。然后你的桌面上应该有一个 Github 图标和 Shell 窗口图标,当它结束时。

                          【讨论】:

                          • 欢迎来到 SO。请阅读此how-to-answer 并格式化您的答案。
                          猜你喜欢
                          • 1970-01-01
                          • 1970-01-01
                          • 1970-01-01
                          • 1970-01-01
                          • 1970-01-01
                          • 2019-03-02
                          • 1970-01-01
                          • 2014-02-04
                          • 2018-02-03
                          相关资源
                          最近更新 更多