Skip to content

Unable to install office-365-apps-minimal-np #423

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

Open
caitlynrw opened this issue Mar 17, 2025 · 8 comments · May be fixed by #421
Open

Unable to install office-365-apps-minimal-np #423

caitlynrw opened this issue Mar 17, 2025 · 8 comments · May be fixed by #421
Labels
bug Something isn't working

Comments

@caitlynrw
Copy link

Bug Report

Package Name: office-365-apps-minimal-np

Current Behaviour

When I attempt to install the package it errors out, no matter what the hash of the current version, if I use aria2 or not, the downloaded hash is always wrong.

Expected Behaviour

Able to install the package

Additional context/output

Installing 'office-365-apps-minimal-np' (3.14.29) [64bit] from 'nonportable' bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 14b8f3|OK  |   5.9MiB/s|C:/Users/caitlynwilliams/scoop/cache/office-365-apps-minimal-np#3.14.29#8e7c199.7z_
Download: Status Legend:
Download: (OK):download completed.
Checking hash of dl.7z_ ... ERROR Hash check failed!
App:         nonportable/office-365-apps-minimal-np
URL:         https://download.microsoft.com/download/#/dl.7z_
First bytes: 3C 21 44 4F 43 54 59 50
Expected:    d1ea216496c1372a8fe878f05e57014086fc5a1c471f71120aa00217b75efe08
Actual:      f953475aa6c5272c3ebd63f80adffa6521ebb9c5c63e3da512e06d626d2d9bd9

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Nonportable/issues/new?title=office-365-apps-minimal-np%403.14.29%3a+hash+check+failed

Possible Solution

System details

Windows version: 11

OS architecture: 64bit

PowerShell version:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      26100  2161

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
    "last_update":  "2025-03-18T01:28:39.3172742+10:30",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "scoop_branch":  "master",
    "use_lessmsi":  true,
    "aria2-enabled":  true,
    "aria2-warning-enabled":  false
}
@caitlynrw caitlynrw added the bug Something isn't working label Mar 17, 2025
@OnionKiller
Copy link

This is a bug related to automatic vesion checking.
This PR is proposed to fix it: #421

@OnionKiller OnionKiller linked a pull request Mar 19, 2025 that will close this issue
1 task
@OnionKiller
Copy link

As an alternative, you may use the latest correct version: 16.0.18129.20030

scoop install [email protected]

@caitlynrw
Copy link
Author

As an alternative, you may use the latest correct version: 16.0.18129.20030

scoop install [email protected]

Using that still results in this error output

WARN  Given version (16.0.18129.20030) does not match manifest (12.8.6)
WARN  Attempting to generate manifest for 'office-365-apps-minimal-np' (16.0.18129.20030)
Autoupdating office-365-apps-minimal-np
Downloading dl.7z_ to compute hashes!
The remote server returned an error: (404) Not Found.
URL https://download.microsoft.com/download/$matchPath$matchFilename#/dl.7z_ is not valid
Could not install office-365-apps-minimal-np@16.0.18129.20030
Select-CurrentVersion : Cannot bind argument to parameter 'AppName' because it is an empty string.
At C:\Users\caitlynwilliams\scoop\apps\scoop\current\lib\core.ps1:435 char:54
+     return $null -ne (Select-CurrentVersion -AppName $app -Global:$gl ...
+                                                      ~~~~
    + CategoryInfo          : InvalidData: (:) [Select-CurrentVersion], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Select-CurrentVersion

You cannot call a method on a null-valued expression.
At C:\Users\caitlynwilliams\scoop\apps\scoop\current\lib\manifest.ps1:36 char:5
+     $app = $app.TrimStart('/')
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\caitlynwilliams\scoop\apps\scoop\current\lib\manifest.ps1:57 char:27
+             if (Test-Path $app) {
+                           ~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

Couldn't find manifest for ''.

@OnionKiller
Copy link

At least it's a different error.
It seems this issue is related to not finding the version.
I checked, and the version should be correct as per my understaning, maybe there is a limited number of versions it can search back? It was about ~600 versions before.

@OnionKiller
Copy link

OnionKiller commented Mar 20, 2025

This seems related to this problem:
ScoopInstaller/Scoop#3045
It seems becouse of the broken link, it is unable to install previous versions. ( Based on ScoopInstaller/Scoop#3894 it tries to create the manifest, which results in a broken one, because the download link is broken)

@zuluion
Copy link

zuluion commented Mar 20, 2025

office-365-apps-np: 16.0.18129.20030 -> 23.10.0
Updating one outdated app:
Updating 'office-365-apps-np' (16.0.18129.20030 -> 23.10.0)
Downloading new version
dl.7z_ (167.7 KB) [===========================================================================================] 100%
Checking hash of dl.7z_ ... ERROR Hash check failed!
App:         nonportable/office-365-apps-np
URL:         https://download.microsoft.com/download/#/dl.7z_
First bytes: 3C 21 44 4F 43 54 59 50
Expected:    d8930edef1d129c8dee4d1db55eb0d3ccb82fc271946ebd57779134437fd6845
Actual:      6bb1013c7fb0ec071b4eca94e454d19e091bd5a2455d6a62c66aee0d93ce77ef

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Nonportable/issues/new?title=office-365-apps-np%4023.10.0%3a+hash+check+failed

@caitlynrw
Copy link
Author

caitlynrw commented Apr 8, 2025

This seems related to this problem: ScoopInstaller/Scoop#3045 It seems becouse of the broken link, it is unable to install previous versions. ( Based on ScoopInstaller/Scoop#3894 it tries to create the manifest, which results in a broken one, because the download link is broken)

- @OnionKiller

is there a way to bypass this problem?

@OnionKiller
Copy link

I wanted to propose to use my fork as an alternative repository, but I encountered some errors when setting up it as a repository.
In theory you can simply set up a github repository as a Scoop bukcet.
I didn't had the patience to figure out why it didn't worked for me, but you may give it a shot, and report back if oyu had any success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants