ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.59k stars 958 forks source link

[Bug]: Unable to install make from main bucket #5185

Closed zerodegress closed 11 months ago

zerodegress commented 11 months ago

Prerequisites

Package Name

make

Expected/Current Behaviour

The make should be installed correctly,but in fact it encountered a "unknown error"(I thought it was caused by sourceforge website).It is not caused by aria2 because I have similar output when install make without aria2.

Notice that I also cannot directly download the package through Invoke-WebRequest.

Steps to Reproduce

❯ scoop install main/make
WARN  Purging previous failed installation of make.
ERROR You need admin rights to uninstall global apps.
WARN  Purging previous failed installation of make.
ERROR You need admin rights to uninstall global apps.
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
WARN  To disable this warning, run 'scoop config aria2-warning-enabled false'.
Installing 'make' (4.4.1) [64bit] from main bucket
Starting download with aria2 ...
Download: 10/16 17:56:51 [ERROR] CUID#8 - Download aborted. URI=https://downloads.sourceforge.net/project/ezwinports/makDownload: Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://nchc.dl.sourceforge.net/project/ezwinports/make-4.Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: ac8e52|ERR |       0B/s|C:/Users/ZeroDegress/scoop/cache/make#4.4.1#https_downloads.sourceforge.net_project_ezwinports_make-4.4.1-without-guile-w32-bin.zip
Download: Status Legend:
Download: (ERR):error occurred.
Download: aria2 will resume download if the transfer is restarted.
Download: If there are any errors, then see the log file. See '-l' option in help/man page for details.

ERROR Download failed! (Error 1) An unknown error occurred
ERROR https://downloads.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip
    dir=C:\Users\ZeroDegress\scoop\cache
    out=make#4.4.1#https_downloads.sourceforge.net_project_ezwinports_make-4.4.1-without-guile-w32-bin.zip

ERROR & 'C:\Users\ZeroDegress\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\ZeroDegress\scoop\cache\make.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/7.3 (Windows NT 10.0; Win64; x64; Core)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=12428 --continue --summary-interval=0 --auto-save-interval=1

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=make%404.4.1%3a+download+via+aria2+failed

Possible Solution

Maybe we should change the download source.

Scoop and Buckets Version

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

'extras' bucket:
be09e085a (HEAD -> master) sorayomi: Update to version 0.5.14

'games' bucket:
43b5a56d (HEAD -> master) vita3k: Update to version 3426-6672090

'java' bucket:
87a7fa85 (HEAD -> master, origin/master, origin/HEAD) temurin17-nightly-jre: Update to version 17.0.9-7.0.202310130210

'main' bucket:
cfc2be1e2 (HEAD -> master, origin/master, origin/HEAD) rust-analyzer: Update to version 2023-10-16

'nerd-fonts' bucket:
99fe5dc (HEAD -> master, origin/master, origin/HEAD) SarasaGothic: Update to version 0.42.2

'nirsoft' bucket:
85ca441 (HEAD -> master, origin/master, origin/HEAD) Updated PingInfoView

'nonportable' bucket:
e42ae56 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.81

'scoopcn' bucket:
67269cc (HEAD -> master, origin/master, origin/HEAD) feishu: Update to version 6.11.16

'sysinternals' bucket:
062afe4 (HEAD -> main, origin/main, origin/HEAD) rdcman: Fix manifest w/ '/accepteula' switch

'versions' bucket:
20e30ee41 (HEAD -> master, origin/master, origin/HEAD) neovim-nightly@0.10.0-dev-1055-gb7734c4ec: Fix hash (Closes #1416)

'zerobucket' bucket:
4f09f13 (HEAD -> master, origin/master, origin/HEAD) console-minecraft-lanucher: Update to version 2.2.1

Scoop Config

❯ scoop config

last_update   : 2023/10/16 17:53:26
aria2-enabled : True
alias         : @{node=scoop-node}
scoop_branch  : master
scoop_repo    : https://github.com/ScoopInstaller/Scoop

PowerShell Version

❯ $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.8
PSEdition                      Core
GitCommitId                    7.3.8
OS                             Microsoft Windows 10.0.22621
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

rashil2000 commented 11 months ago

Aria2 is known to cause issues with downloads sometimes. Try disabling it once.

zerodegress commented 11 months ago

Aria2 is known to cause issues with downloads sometimes. Try disabling it once.

I have already tried it, the similar error occured.

zerodegress commented 11 months ago

Aria2 is known to cause issues with downloads sometimes. Try disabling it once.

❯ scoop install make WARN Purging previous failed installation of make. ERROR You need admin rights to uninstall global apps. WARN Purging previous failed installation of make. ERROR 'make' isn't installed correctly. Removing older version (4.4.1). 'make' was uninstalled. WARN Purging previous failed installation of make. ERROR You need admin rights to uninstall global apps. Installing 'make' (4.4.1) [64bit] from main bucket The SSL connection could not be established, see inner exception. URL https://downloads.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip is not valid

rashil2000 commented 11 months ago

Are you able to access that URL in a browser, or via curl?

zerodegress commented 11 months ago

Are you able to access that URL in a browser, or via curl?

❯ wget  https://downloads.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip
--2023-10-17 14:53:02--  https://downloads.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 198.18.0.150
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|198.18.0.150|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://nchc.dl.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip [following]
--2023-10-17 14:53:03--  https://nchc.dl.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip
Resolving nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)... 198.18.0.151
Connecting to nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)|198.18.0.151|:443... connected.
OpenSSL: error:0A000126:SSL routines::unexpected eof while reading
Unable to establish SSL connection.

❯ curl  https://downloads.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip
<html>
<head>
<title>302 Found</title>
</head>
<body>
<h1>302 Found</h1>
The resource was found at <a href="https://nchc.dl.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip">https://nchc.dl.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip</a>;
you should be redirected automatically.

rashil2000 commented 11 months ago

I am able to access the https://nchc.dl.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip URL. Are you?

zerodegress commented 11 months ago

I am able to access the https://nchc.dl.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip URL. Are you?

Hmmm......it can be directly accessed again.Maybe this was caused by temporary net error, like DNS cache pollution.

It was solved accidentally.

rashil2000 commented 11 months ago

No worries!