SourceTree安装程序打不开

郭仁龙 July 21, 2022

进入安装程序后显示两遍SourceTree图标后就闪退,重新安装无法解决问题

由于安装错误导致未生成C:\Users\用户名\AppData\Local\Atlassian文件夹,无法更改user.config文件

安装日志如下:

2022-07-21 21:00:45> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC
2022-07-21 21:00:45> Program: Starting install, writing to C:\Users\86135\AppData\Local\SquirrelTemp
2022-07-21 21:00:45> Program: About to install to: C:\Users\86135\AppData\Local\SourceTree
2022-07-21 21:00:45> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\86135\AppData\Local\SourceTree\packages\.betaId”的一部分。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
在 System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
在 System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
在 Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2022-07-21 21:00:45> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\86135\AppData\Local\SourceTree\packages\RELEASES”的一部分。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
在 Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
在 Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()
2022-07-21 21:00:45> CheckForUpdateImpl: Reading RELEASES file from C:\Users\86135\AppData\Local\SquirrelTemp
2022-07-21 21:00:45> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2022-07-21 21:00:45> ApplyReleasesImpl: Writing files to app directory: C:\Users\86135\AppData\Local\SourceTree\app-3.4.3
2022-07-21 21:00:46> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\Users\86135\AppData\Local\SourceTree\SourceTree.exe
2022-07-21 21:00:46> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\86135\AppData\Local\SourceTree\app-3.4.3\SourceTree.exe]
2022-07-21 21:00:48> ApplyReleasesImpl: Starting fixPinnedExecutables
2022-07-21 21:00:48> ApplyReleasesImpl: Examining Pin: 360安全浏览器.lnk
2022-07-21 21:00:48> ApplyReleasesImpl: Examining Pin: 360极速浏览器.lnk
2022-07-21 21:00:48> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2022-07-21 21:00:48> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
2022-07-21 21:00:48> ApplyReleasesImpl: Examining Pin: Paint.lnk
2022-07-21 21:00:48> ApplyReleasesImpl: Fixing up tray icons
2022-07-21 21:00:48> ApplyReleasesImpl: cleanDeadVersions: for version 3.4.3
2022-07-21 21:00:48> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-3.4.3
2022-07-21 21:00:48> InstallHelperImpl: Couldn't write uninstall icon, don't care: System.Net.WebException: 在 WebClient 请求期间发生异常。 ---> System.NullReferenceException: 未将对象引用设置到对象的实例。
在 System.Net.WebRequest.get_PrefixList()
在 System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
在 System.Net.WebRequest.Create(Uri requestUri)
在 System.Net.WebClient.GetWebRequest(Uri address)
在 System.Net.WebClient.DownloadFileAsync(Uri address, String fileName, Object userToken)
--- 内部异常堆栈跟踪的结尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
在 Squirrel.UpdateManager.InstallHelperImpl.<CreateUninstallerRegistryEntry>d__5.MoveNext()

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events