Skip to content

[Bug]: qbittorrent (5.0.2 -> 5.0.3) error - The handshake failed due to an unexpected packet format. #14660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
cannibalox opened this issue Dec 31, 2024 · 4 comments
Labels

Comments

@cannibalox
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

qbittorrent

Expected/Current Behaviour

  • can't update qbittorrent 5.0.2 to 5.0.3
  • it seems install of qbitorrent 5.0.3 also fails

Steps to Reproduce

> scoop update qbittorrent                         
qbittorrent: 5.0.2 -> 5.0.3
Updating one outdated app:
Updating 'qbittorrent' (5.0.2 -> 5.0.3)
Downloading new version
The handshake failed due to an unexpected packet format.
At C:\scoop\apps\scoop\current\lib\install.ps1:115 char:9
+         throw $e
+         ~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], IOException
    + FullyQualifiedErrorId : The handshake failed due to an unexpected packet format.


### Possible Solution

also tried in powershell 7 and couldn't update with SSL issue

### Scoop and Buckets Version

```console
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
a0e19a1c1 (HEAD -> master, origin/master, origin/HEAD) watchman: Update to version 2024.12.30.00

'extras' bucket:
d12eff4f1 (HEAD -> master, origin/master, origin/HEAD) okular: Update to version 24.12-5707

'versions' bucket:
c17acffce (HEAD -> master, origin/master, origin/HEAD) odin-nightly: Update to version 2024-12-30

Scoop Config

PC  D:  scoop config  

last_update                       scoop_branch scoop_repo
-----------                       ------------ ----------
2024-12-31T01:35:13.5620597+01:00 master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22621.4391
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.4391
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

@cannibalox cannibalox added the bug label Dec 31, 2024
@AkariiinMKII
Copy link
Contributor

The handshake failed due to an unexpected packet format.
At C:\scoop\apps\scoop\current\lib\install.ps1:115 char:9

https://github.com/ScoopInstaller/Scoop/blob/859d1db51bcc840903d5280567846ae2f7207ca2/lib/install.ps1#L102-L117

Download failed, I suggest checking your network and enable aria2 in scoop config.

And tested on my device
image

@cannibalox
Copy link
Author

thanks for the help !
tried with aria2 enabled but it didn't work either.
then tried to adjust [Net.ServicePointManager]::SecurityProtocol , rebooted, tried again with aria2 (failed), disabled aria2 and it finally worked
image
closing, but there is something weird here. my issue is similar to :
ScoopInstaller/Scoop#6183

@calexandre
Copy link

I'm having the same problem, but nothing appears to work :(

@cannibalox
Copy link
Author

I'm having the same problem, but nothing appears to work :(

not sure what worked in my case, I think the correct sequence was :

  • reboot
  • in powershell 7:
> [Net.ServicePointManager]::SecurityProtocol = "tls, tls11, tls12, tls13, SystemDefault"`
> scoop update qbittorrent

aria2 was DISABLED when it finally worked (scoop config aria2-enabled false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants