27

我正在尝试为 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.

我按照这篇文章的建议下载了 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.

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

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

谢谢,克里斯

4

15 回答 15

36

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

https://github-windows.s3.amazonaws.com/GitHub.application
于 2015-10-08T16:50:54.233 回答
6

我遇到了完全相同的问题,结果发现 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 支持人员取得联系。

于 2013-07-03T14:26:21.047 回答
6

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

于 2014-02-10T14:08:08.320 回答
4

介绍

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

我是如何解决的

正如上面提到的Geogrgios,您需要向防火墙添加一个例外。

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

可以在此处找到更好的说明(带屏幕截图)

于 2014-07-17T18:09:08.307 回答
4

我打开 Microsoft Edge 并导航到:

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

第一次工作!

也可以在 Internet Explorer 中使用

灵感来自:stimpy77

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

于 2016-02-01T23:16:39.313 回答
2

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

于 2015-04-17T08:38:52.870 回答
2

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

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

于 2014-08-27T08:54:48.647 回答
1

如果您使用的是卡巴斯基,请先禁用保护和控制。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 ---
于 2015-09-15T15:17:49.047 回答
1

如果您使用 Windows 10:

  1. 杀死 dfsvc.exe
  2. 删除此文件夹:%LocalAppData%\Apps\2.0
  3. 输入 Internet Explorer:https ://github-windows.s3.amazonaws.com/GitHub.application
于 2016-06-23T02:55:15.247 回答
0

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

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

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

谢谢。

于 2014-02-11T07:40:20.197 回答
0

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

于 2016-11-24T10:09:49.197 回答
0

对先前的答案进行更多详细说明:

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。

于 2017-03-30T19:30:11.700 回答
0

感谢这篇文章,我刚刚使用了 Internet Explorer 并导航到:

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

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

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

于 2017-03-29T22:42:11.580 回答
0

结果对我来说问题是我的公司网络阻止了网络级别的下载。我通过个人 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、手机网络共享或公司网络之外的其他网络进行下载。

于 2016-06-08T14:02:03.673 回答
0

要解决此问题:

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

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

于 2017-05-25T05:33:59.650 回答