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

.narinfo is corrupt, cannot install software and cannot update after gc #232802

Closed
jcleng opened this issue May 19, 2023 · 1 comment
Closed

.narinfo is corrupt, cannot install software and cannot update after gc #232802

jcleng opened this issue May 19, 2023 · 1 comment

Comments

@jcleng
Copy link

jcleng commented May 19, 2023

Describe the bug

.narinfo is corrupt, cannot install software and cannot update after gc

Steps To Reproduce

Steps to reproduce the behavior:
nix-collect-garbage
sudo nix-collect-garbage

Expected behavior

sudo nixos-rebuild switch --upgrade

error (ignored): error: NAR info file 'fi1521530hy97gwjfdlgiqb4wad2g13d.narinfo' is corrupt
error (ignored): error: NAR info file 'qpyvs8xzd60f7pflj8bvpnkn908qa60w.narinfo' is corrupt
error (ignored): error: NAR info file 'qxra1290w7hwli8rn4qzzsaz0qsgnvn6.narinfo' is corrupt
error (ignored): error: NAR info file '3hnkf4972i1555cbr0l7r73wlf0xf36j.narinfo' is corrupt
error (ignored): error: NAR info file '64vcf3x48sjfckvwzbdsr3a9yjf0jcbq.narinfo' is corrupt
error (ignored): error: NAR info file 'fi1521530hy97gwjfdlgiqb4wad2g13d.narinfo' is corrupt
error (ignored): error: NAR info file 'b43rkqha62fb6nhgklr0nlyjww3b18ys.narinfo' is corrupt
error (ignored): error: NAR info file 'xxf4yg2ds8dpg3wihsyl0fjslncp1lnl.narinfo' is corrupt
error (ignored): error: NAR info file 'iczlqwdj10xiz3mmms6adnra0mn3ljk1.narinfo' is corrupt
error (ignored): error: NAR info file 'i710kr23gila97nns4hl4s91igcw63gg.narinfo' is corrupt
error (ignored): error: NAR info file '0jmdsgfnd6aakxdr0sl5l7zzfs59hdrw.narinfo' is corrupt
error (ignored): error: NAR info file 'hsji8dkz2azgn3ylyzx9898qyrf46axv.narinfo' is corrupt
error (ignored): error: NAR info file 'phpj49r6iglnj5kpln2jrrwd21573q0k.narinfo' is corrupt
error (ignored): error: NAR info file 'cxjiscgcyzd00q8q3cz6r39ldgrxjy6z.narinfo' is corrupt
error: NAR info file 'c0v8n712v03abb1cklvsgfy59v5jfx4s.narinfo' is corrupt

Screenshots

Additional context

Notify maintainers

Metadata

 nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.103, NixOS, 22.11 (Raccoon), 22.11.3253.eac7da7b519`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(jcleng): `"nixpkgs"`
 - channels(root): `"nixos-22.11"`
 - nixpkgs: `/home/jcleng/.nix-defexpr/channels/nixpkgs`
@wentasah
Copy link
Contributor

Do you use custom binary cache? If yes and you happen to use nix-serve, try upgrading to the version from master, which might fix the problem.

If you are able to upgrade nix to the (not yet released) master version, you will get more detailed information about what's the problem.

If the above is not applicable, disable custom binary caches (substituters) in your nix.conf.

@jcleng jcleng closed this as completed May 20, 2023
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