Skip to content
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

scoop update 7zip cause an error «URL https://7-zip.org/a/7z1900-x64.msi is not valid» #3918

Closed
avgolubev opened this issue Apr 8, 2020 · 18 comments

Comments

@avgolubev
Copy link

Executing
$scoop update 7zip
cause an error «URL https://7-zip.org/a/7z1900-x64.msi is not valid»
This error occurs because this URL is blocked on the territory of Russia, although I do not understand the meaning of this blocking.
Maybe you should somehow change this URL to an alternative or there is no other address for installing 7zip?

@r15ch13
Copy link
Member

r15ch13 commented Apr 21, 2020

Try installing 7zip-zstd

@yfxwardy
Copy link

yfxwardy commented Apr 21, 2020

Try installing 7zip-zstd

scoop install 7zip-zstd
Scoop uses Git to update itself. Run 'scoop install git' and try again.
Couldn't find manifest for '7zip-zstd'.

@r15ch13
Copy link
Member

r15ch13 commented Apr 21, 2020

Sorry, forgot that it's in the versions bucket.
Try scoop install https://raw.githubusercontent.com/ScoopInstaller/Versions/master/bucket/7zip-zstd.json that should work.

@avgolubev
Copy link
Author

avgolubev commented Apr 21, 2020

@r15ch13 if i run
scoop install https://raw.githubusercontent.com/ScoopInstaller/Versions/master/bucket/7zip-zstd.json
i get https://7-zip.org/a/7z1900-x64.msi is not valid
@Robespeler if i run
scoop install 7zip-zstd
i get Couldn't find manifest for '7zip-zstd'.

Although there is no direct link to (https://7-zip.org/a/7z1900-x64.msi) in file 7zip-zstd.json, I think they all lead there in the end.

@r15ch13
Copy link
Member

r15ch13 commented Apr 21, 2020

7zip-zstd is packed and it also requires 7zip. Dang it. 😐

Is the IP of 7-zip.org (159.65.89.65) completely unreachable for you? Could an entry in the hosts file fix this?

@r15ch13
Copy link
Member

r15ch13 commented Apr 21, 2020

You could download the 7z1900-x64.msi from https://sourceforge.net/projects/sevenzip/files/7-Zip/19.00/, put it in the ~\scoop\cache\ directory and call it 7zip#19.00#https_7-zip.org_a_7z1900-x64.msi

@yfxwardy
Copy link

yfxwardy commented Apr 21, 2020

i get https://7-zip.org/a/7z1900-x64.msi is not valid

This is because of scoop trying to install usual 7zip first and we get the same error.
If you try this command one more time maybe you get success, but this is what I had:

Installing '7zip-zstd' (19.00-v1.4.4-R3) [64bit]
7z19.00-zstd-x64.exe (2.3 MB) [===============================================================================] 100%
Checking hash of 7z19.00-zstd-x64.exe ... ok.
Extracting dl.7z ... Invoke-ExternalCommand : Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Provide an
argument that is not null or empty, and then try the command again.
At D:\scoop\apps\scoop\current\lib\decompress.ps1:81 char:38
+     $Status = Invoke-ExternalCommand $7zPath $ArgList -LogPath $LogPa ...
+                                      ~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Invoke-ExternalCommand], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-ExternalCommand

git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ git config --get remote.origin.url
+ ~~~
    + CategoryInfo          : ObjectNotFound: (git:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Failed to extract files from D:\scoop\apps\7zip-zstd\19.00-v1.4.4-R3\dl.7z.
Log file:
  D:\scoop\apps\7zip-zstd\19.00-v1.4.4-R3\7zip.log

But I want to know what are we doing here? Problem with 7zip was one year later. Is it official solution or just some good user help. I feel very bad now to realize this. From both sides: country blocking politics and scoop devs reaction. How can it be? So much time and nobody cares

@yfxwardy
Copy link

Sorry, I somehow missed two last responses.

@r15ch13 Could you clarify please. Is there any official correct solution? I don't understand. There were so many closed issues here #3399 and what? How did it end?

@yfxwardy
Copy link

You could download the 7z1900-x64.msi from https://sourceforge.net/projects/sevenzip/files/7-Zip/19.00/, put it in the ~\scoop\cache\ directory and call it 7zip#19.00#https_7-zip.org_a_7z1900-x64.msi

What is the strange syntax? 7zip#19.00#https_7-zip.org_a_7z1900-x64.msi
Do you mean manually launch execute file or use some command?

@dmi3mis
Copy link

dmi3mis commented Apr 22, 2020

Hi!
It seems to me that ip subnet of site https://www.7-zip.org is blocked in Russia now by RKN.
Everyone can check, https://isitblockedinrussia.com/?host=7-zip.org
I had changed download link in \scoop\buckets\main\bucket\7zip.json from blocked https://7-zip.org/a/7z1900-x64.msi direct link to https://sourceforge.net/projects/sevenzip/files/7-Zip/19.00/7z1900-x64.msi

    "64bit": {
        "url": "https://sourceforge.net/projects/sevenzip/files/7-Zip/19.00/7z1900-x64.msi",
        "hash": "a7803233eedb6a4b59b3024ccf9292a6fffb94507dc998aa67c5b745d197a5dc"
    },
    "32bit": {
        "url": "https://sourceforge.net/projects/sevenzip/files/7-Zip/19.00/7z1900.msi",
        "hash": "b49d55a52bc0eab14947c8982c413d9be141c337da1368a24aa0484cbb5e89cd"
    }

It seems to me that 7zip now is installing successfully.

@r15ch13
Copy link
Member

r15ch13 commented Apr 22, 2020

@Robespeler

No there is not official solution to this.
By downloading the file manually and moving it to the cache directory it is possible to install 7zip because Scoop doesn't redownload the file if it's in the cache.
The filename has to be 7zip#19.00#https_7-zip.org_a_7z1900-x64.msi because Scoop uses this format for cached files.

The workaround from @dmi3mis should work too.

@avgolubev
Copy link
Author

@r15ch13 That's working. Thank you and all guys for your helping.

@yfxwardy
Copy link

yfxwardy commented Apr 23, 2020

I get round this with proxy. Thank you for help.

@r15ch13 @avgolubev
Summarize the full solution for others. I didn't understand what means by "call it" What command?

And I suggest it is not right to close the issue, because it is temporary solution.
And maybe there will be good correct way in the future

@avgolubev avgolubev reopened this Apr 23, 2020
@avgolubev
Copy link
Author

@Robespeler Yes, you're right, i open the issue.
"call it" means run scoop install 7zip after you copy 7zip#19.00#https_7-zip.org_a_7z1900-x64.msi file in the ~\scoop\cache\ .

@niheaven
Copy link
Member

The official solution:

  • Install 7zip by yourself (from SF and just make sure 7z.exe is in your PATH)
  • Run scoop config 7ZIPEXTRACT_USE_EXTERNAL true
  • Now scoop will use 7z from your own PATH and will skip all 7-zip dependency.

As @r15ch13 said, you sould install 7zip-zstd by scoop, which is more powerful and robust.

@Bug-terminator
Copy link

The official solution:

  • Install 7zip by yourself (from SF and just make sure 7z.exe is in your PATH)
  • Run scoop config 7ZIPEXTRACT_USE_EXTERNAL true
  • Now scoop will use 7z from your own PATH and will skip all 7-zip dependency.

As @r15ch13 said, you sould install 7zip-zstd by scoop, which is more powerful and robust.

what is PATH? pls & thx.

@niheaven
Copy link
Member

niheaven commented Jul 1, 2020

The official solution:

  • Install 7zip by yourself (from SF and just make sure 7z.exe is in your PATH)
  • Run scoop config 7ZIPEXTRACT_USE_EXTERNAL true
  • Now scoop will use 7z from your own PATH and will skip all 7-zip dependency.

As @r15ch13 said, you sould install 7zip-zstd by scoop, which is more powerful and robust.

what is PATH? pls & thx.

Let 7z be found in your terminal, usually install 7zip by the installer should work.

@yfxwardy
Copy link

yfxwardy commented Jul 1, 2020

what is PATH? pls & thx.

Path it is the path to the application that you need to add to the variables so that the OS knows how to find this application. For some applications, you need to manually add the path if they cannot do this automatically during installation. For example, this applies to portable programs.

Environment-Variables

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

No branches or pull requests

6 participants