Open
Description
Describe the bug
The store location in an error message is wrong. See steps.
Steps To Reproduce
There's probably an easier way to trigger this.
- Choose or make an unimportant store path
<path>
- Back up a store path with
nix copy --to ~/recoverstore <path>
- Corrupt the original store path by mounting the system store file system
rw
and deleting it from the file system. Do not delete it from the store db; we want that entry to remain. sudo nix store repair --extra-substituters ~/recoverstore --extra-trusted-substituters ~/recoverstore <path>
(the latter option seems to have no effect; need?trusted=true
; different issue)
Observe a message like
warning: ignoring substitute for '/nix/store/nzb7spdhiy30ikv1crnk8dgl0svyjgw4-libunistring-1.2' from 'local', as it's not signed by any of the keys in 'trusted-public-keys'
Expected behavior
warning: ignoring substitute for '/nix/store/nzb7spdhiy30ikv1crnk8dgl0svyjgw4-libunistring-1.2' from '/root/recoverstore', as it's not signed by any of the keys in 'trusted-public-keys'
nix-env --version
output
2.24.10
Additional context
- More material problem in this scenario is
nix repair
does not adhere toextra-trusted-substituters
#11875
Priorities
Add 👍 to issues you find important.