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

Chocolatey CLI does not function at all when "Not a valid nupkg" error is shown #3550

Open
6 tasks done
pauby opened this issue Nov 5, 2024 · 1 comment
Open
6 tasks done

Comments

@pauby
Copy link
Member

pauby commented Nov 5, 2024

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When a package exists in the lib folder, but does not have any corresponding entries in the .chocolatey folder, the error 'Not a valid nupkg file' is shown. This stops Chocolatey CLI from doing anything else until the problem is resolved.

Image

What is Expected?

If there is a problem with a particular package, Chocolatey CLI should warn the user, but should still function. If possible, it should let the user know what they should do and what the error is (i.e., no equivalent package ID in .chocolatey folder for example).

How Did You Get This To Happen?

See the Zendesk ticket for more information. Note that there is also a script that was created to resolve the problem in that ticket.

System Details

N/A

Installed Packages

N/A

Output Log

See the Zendesk ticket for more information.

Additional Context

This is related to a Zendesk ticket.

@mio-19
Copy link

mio-19 commented Jan 14, 2025

choco not functioning when the device crashed during a update and now "Not a valid nupkg"

 choco install nextcloud-client
Chocolatey v2.4.1
Installing the following packages:
nextcloud-client
By installing, you accept licenses for the packages.

Chocolatey installed 0/0 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
'C:\ProgramData\chocolatey\lib\nextcloud-client\nextcloud-client.nupkg' is not a valid nupkg file. Error: 'The file is not a valid nupkg. File path: C:\ProgramData\chocolatey\lib\nextcloud-client\nextcloud-client.nupkg'.

choco upgrade all
Chocolatey v2.4.1
Upgrading the following packages:
all
By upgrading, you accept licenses for the packages.

Chocolatey upgraded 0/0 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
'C:\ProgramData\chocolatey\lib\nextcloud-client\nextcloud-client.nupkg' is not a valid nupkg file. Error: 'The file is not a valid nupkg. File path: C:\ProgramData\chocolatey\lib\nextcloud-client\nextcloud-client.nupkg'.

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

No branches or pull requests

2 participants