Scoop
Scoop copied to clipboard
[Bug] The SSL connection could not be established, see inner exception.
Bug Report
Current Behavior
I came across this issue when I updated any package, for example, vscode
and oh-my-posh
I have tried PowerShell (7.4.5) and Cmd, and the outputs are the same like below.
d:\Desktop>scoop update oh-my-posh
oh-my-posh: 23.15.3 -> 23.17.0
Updating one outdated app:
Updating 'oh-my-posh' (23.15.3 -> 23.17.0)
Downloading new version
OperationStopped: C:\Users\tanzi\scoop\apps\scoop\current\lib\install.ps1:115
Line |
115 | throw $e
| ~~~~~~~~
| The SSL connection could not be established, see inner exception.
Expected Behavior
Download the package and install it.
Additional context/output
Possible Solution
This issue is the same with #3746 . However, the solutions mentioned in the issue don't work.
I have tried the solutions below, and they all failed.The error information keeps the same.
- Method 1: run the command in PowerShell
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
- Mehtod 2: run the update command in CMD.
scoop update oh-my-posh
System details
Windows version: 10
OS architecture: 64bit
PowerShell version: [output of "$($PSVersionTable.PSVersion)"
]
Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 4 5
Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration
{
"last_update": "2024-10-11T16:42:25.2438842+08:00",
"aria2-enabled": false,
"scoop_repo": "https://github.com/ScoopInstaller/Scoop",
"scoop_branch": "master"
}