Skip to content

Failed to unpack registry archive #9764

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

Closed
vinodindi8701 opened this issue Apr 21, 2025 · 3 comments
Closed

Failed to unpack registry archive #9764

vinodindi8701 opened this issue Apr 21, 2025 · 3 comments

Comments

@vinodindi8701
Copy link

Hello, i have my nvim setup in ubuntu 22.04, i never had any issues with mason, but recently i am seeing this error, i have not changed anything in my setup, i am not sure what is causing this error, i have pasted the MasonLog below, and when i do MasonUpdate i am getting the following error

Failed to update registries: ...are/nvim/lazy/mason.nvim/lua/mason-core/package/init.lua:102: bin: expected table: 0x7a2497a7f6c0, got table (table: 0x7a2497d62d10)

[ERROR Monday 21 April 2025 10:43:08 AM] ...cal/share/nvim/lazy/mason.nvim/lua/mason-core/result.lua:128: Failed to unpack registry archive. ...are/nvim/lazy/mason.nvim/lua/mason-vendor/zzlib/init.lua:191: .ZIP file comments not supported
[ERROR Monday 21 April 2025 10:43:08 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to unpack registry archive."
[ERROR Monday 21 April 2025 10:43:09 AM] ...cal/share/nvim/lazy/mason.nvim/lua/mason-core/result.lua:128: Failed to unpack registry archive. ...are/nvim/lazy/mason.nvim/lua/mason-vendor/zzlib/init.lua:191: .ZIP file comments not supported
[ERROR Monday 21 April 2025 10:43:09 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to unpack registry archive."
[ERROR Monday 21 April 2025 10:43:09 AM] ...cal/share/nvim/lazy/mason.nvim/lua/mason-core/result.lua:128: Failed to unpack registry archive. ...are/nvim/lazy/mason.nvim/lua/mason-vendor/zzlib/init.lua:134: checksum verification failed
[ERROR Monday 21 April 2025 10:43:09 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to unpack registry archive."
[ERROR Monday 21 April 2025 10:43:09 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "ENOENT: no such file or directory: /home/user/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip"
[ERROR Monday 21 April 2025 10:43:09 AM] ...cal/share/nvim/lazy/mason.nvim/lua/mason-core/result.lua:128: Failed to unpack registry archive. ...are/nvim/lazy/mason.nvim/lua/mason-vendor/zzlib/init.lua:134: checksum verification failed
[ERROR Monday 21 April 2025 10:43:09 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to unpack registry archive."
[ERROR Monday 21 April 2025 10:43:09 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "ENOENT: no such file or directory: /home/user/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip"
[ERROR Monday 21 April 2025 10:43:09 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "ENOENT: no such file or directory: /home/user/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip"
[ERROR Monday 21 April 2025 10:43:10 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "ENOENT: no such file or directory: /home/user/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip"
[ERROR Monday 21 April 2025 10:43:10 AM] ...cal/share/nvim/lazy/mason.nvim/lua/mason-core/result.lua:128: Failed to unpack registry archive. ...are/nvim/lazy/mason.nvim/lua/mason-vendor/zzlib/init.lua:191: .ZIP file comments not supported
[ERROR Monday 21 April 2025 10:43:10 AM] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to unpack registry archive."

@tandetat
Copy link

tandetat commented May 8, 2025

Hi, I have had similar problems. It started out with the Github registry failing to install because of a missing registry.json.zip. I tried creating a registry.json.zip manually using zip (probably not the correct way but I was just tinkering) and then I started getting the Failed to unpack registry archive error. I’m going to try other approaches soon.

@longthanhtran reported a similar problem in mason-org/mason.nvim#1929 (comment)

Seems like the new version (2.0.0) also breaks my lsp inlay_hint, it took me almost a day until I found this issue. Yes, stay with v1 fix my problem.

Here is the error I got when I run 'Mason'

Image

@vinodindi8701
Copy link
Author

vinodindi8701 commented May 9, 2025

@tandetat , I had built neovim from source and I had not updated it in a long time, updating the neovim, and reinstalling latest versions of all the packages fixed this issue, and also removing "pylint" from mason solved the "registry.json.zip" error.

@tandetat
Copy link

tandetat commented May 9, 2025

@tandetat , I had built neovim from source and I had not updated it in a long time, updating the neovim, and reinstalling latest versions of all the packages fixed this issue, and also removing "pylint" from mason solved the "registry.json.zip" error.

Thank you for sharing your fix! I was using the latest version of neovim and didn’t have pylint installed, but reinstalling mason and all my packages solved the issue.

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

2 participants