ScoopInstaller / Extras

📦 The Extras bucket for Scoop.
https://scoop.sh
The Unlicense
1.8k stars 1.38k forks source link

[Bug]: Can’t update qBittorrent from 4.4.5 to 4.5.x or reinstall #10535

Closed Aankhen closed 1 year ago

Aankhen commented 1 year ago

Prerequisites

Package Name

qbittorrent

Expected/Current Behaviour

I should be able to upgrade qBittorrent from 4.4.5 to 4.5.x, or, failing that, remove the current version and install 4.5.x. Instead, whether I try to update it or first remove then reinstall it, I get an error about uninst.exe (see below). The same thing happens with qbittorrent@4.5.0. I’m also unable to reinstall v4.4.5 because I get hash failures over and over again; there’s a message saying SourceForge.net can cause this, but I’ve tried 10 times now without a successful download.

Steps to Reproduce

❯❯ scoop install qbittorrent
Installing 'qbittorrent' (4.5.1) [64bit] from extras bucket
Loading qbittorrent_4.5.1_x64_setup.exe from cache.
Checking hash of qbittorrent_4.5.1_x64_setup.exe ... ok.
Extracting dl.7z ... done.
Running pre_install script...
Remove-Item: Cannot find path 'C:\App\Scoop\apps\qbittorrent\4.5.1\translations\uninst.exe' because it does not exist.

❯❯ touch C:\App\Scoop\apps\qbittorrent\4.5.1\translations\uninst.exe
❯❯ scoop install qbittorrent
WARN  Purging previous failed installation of qbittorrent.
ERROR 'qbittorrent' isn't installed correctly.
Removing older version (4.5.1).
'qbittorrent' was uninstalled.
Installing 'qbittorrent' (4.5.1) [64bit] from extras bucket
Loading qbittorrent_4.5.1_x64_setup.exe from cache.
Checking hash of qbittorrent_4.5.1_x64_setup.exe ... ok.
Extracting dl.7z ... done.
Running pre_install script...
Remove-Item: Cannot find path 'C:\App\Scoop\apps\qbittorrent\4.5.1\translations\uninst.exe' because it does not exist.

 ✗ scoop install qbittorrent@4.4.5
WARN  Given version (4.4.5) does not match manifest (4.5.1)
WARN  Attempting to generate manifest for 'qbittorrent' (4.4.5)
Autoupdating qbittorrent
Searching hash for qbittorrent_4.4.5_x64_setup.exe in https://www.qbittorrent.org/download.php
Found: c196a5a9bedb926fde629a7075cbf9a0b7d36f54088d8a699dd541a4f4af5a13 using Extract Mode
Writing updated qbittorrent manifest
WARN  Purging previous failed installation of qbittorrent.
ERROR 'qbittorrent' isn't installed correctly.
Removing older version (4.4.5).
'qbittorrent' was uninstalled.
Installing 'qbittorrent' (4.4.5) [64bit]
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 6a7951|OK  |   528KiB/s|C:/App/Scoop/cache/qbittorrent#4.4.5#https_downloads.sourceforge.net_project_qbittorrent_qbittorrent-win32_qbittorrent-4.4.5_qbittorrent_4.4.5_x64_setup.exe_dl.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of qbittorrent_4.4.5_x64_setup.exe ... ERROR Hash check failed!
App:         qbittorrent
URL:         https://downloads.sourceforge.net/project/qbittorrent/qbittorrent-win32/qbittorrent-4.4.5/qbittorrent_4.4.5_x64_setup.exe#/dl.7z
First bytes: 4D 5A 90 00 03 00 00 00
Expected:    c196a5a9bedb926fde629a7075cbf9a0b7d36f54088d8a699dd541a4f4af5a13
Actual:      efb0298fae1578033a334ba3adbe0e93ea15239d623a26ce11f230eb0af8654a
SourceForge.net is known for causing hash validation fails. Please try again before opening a ticket.

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=qbittorrent%404.5.1%3a+hash+check+failed

Possible Solution

I’m guessing this is related to #10118, but I don’t know what the solution is. I wouldn’t have expected Remove-Item -Force to fail when the file doesn’t exist.

Scoop and Buckets Version

✗ scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
79ae27c7a (HEAD -> master, origin/master, origin/HEAD) chatty: Update to version 0.23

'java' bucket:
5b107346 (HEAD -> master, origin/master, origin/HEAD) temurin17-nightly-jre: Update to version 17.0.7-2.0.202302162345

'main' bucket:
7e382b53a (HEAD -> master, origin/master, origin/HEAD) zeebe: Update to version 8.1.8

'misc' bucket:
075b9a6 (HEAD -> master, origin/master, origin/HEAD) golang: Update to version 1.20.1

'nerd-fonts' bucket:
c4b11ac (HEAD -> master, origin/master, origin/HEAD) SarasaGothic: Update to version 0.40.1

'nonportable' bucket:
a824938 (HEAD -> master, origin/master, origin/HEAD) nodejs-np: Update to version 19.6.1

'smallstep' bucket:
33f61dd (HEAD -> master, origin/master, origin/HEAD) Scoop update for step version v0.23.2

'versions' bucket:
932cdb2bf (HEAD -> master, origin/master, origin/HEAD) sharex-dev: Update to version 15.0.0.78

Scoop Config

❯❯ scoop config

aria2-warning-enabled last_update           scoop_branch scoop_repo
--------------------- -----------           ------------ ----------
                False 2023-02-17 3:39:57 PM master       https://github.com/lukesampson/scoop

PowerShell Version

❯❯ $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.2
PSEdition                      Core
GitCommitId                    7.3.2
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

AkariiinMKII commented 1 year ago

You are right, the app uninstaller has been moved back to root folder.